This is a discussion on Re: PHP Newbie: getting domain or url within the PHP Language forums, part of the PHP Programming Forums category; JJordan wrote: > I am trying to get the domain name that a user just came from when hitting > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
JJordan wrote:
> I am trying to get the domain name that a user just came from when hitting > a specific php page I have created. > > Example: User clicks a link on a website somewhere in cyberspace that > takes > them to my_webpage.php Would like to find out what site they were on > when they clicked the link. > > Top level information is enough, such as 'somewebsite.com' even if the > user came from 'somewebsite.com/tutorials/php_help.html' > > Would I use the rawurldecode() function to parse the url and strip the > junk > off the end? If not, can you direct me to the function or code samples on > php.net, phpbuilder.net or one of the other great php sites. Two days of > searching on my own has gotten me nowhere. > > Thanks, > JJordan HTTP_REFERER .. is your keyword. www.php.net is your source. /Andreas -- Registeret Linux user #292411 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|