Jump to content

$_SERVER['REQUEST_URI'];


hjvanes

Recommended Posts

Hello PHPers,

 

Need help.  I am using $_SERVER['REQUEST_URI']; in order to obtain the URL that the visitor came from.  No matter what I try to change I get more info than required. IE.

 

mojo/mojo.php?width=640&height=480&doc_location=/&doc_title=Marc%20Rob&doc_refer=http%3A//www.aaa.com.au/rob.html

 

instead and what I should be getting is just http://www.aaa.com.au/rob.html

 

Could somebody please help me and let me know why this is appearing with the extra info which I do not want.

 

Thank you.

 

HJ

Link to comment
https://forums.phpfreaks.com/topic/247236-_serverrequest_uri/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.