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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.