Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End what’s the difference between those links Re: what’s the difference between those links

#74951
ddliu
Member

http://mydomain/index.php?img=http://mydomain/images/1.png

it’s no difference with


mydomain/index.php?id=1

they are all key-value pairs, you can retrieve the first one with $_GET or $_REQUEST on server side; you can retrieve the second one with $_GET or $_REQUEST on server side.

For the last one:


http://mydomain/?7

It’s useful for a user friendly url(which may be replaced by url rewrite for a more friendly url), you can get the request data with $_SERVER on server side – that is $_SERVER=7 in your given url.