Re: PHP Newbie: getting domain or url

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


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-25-2003
Andreas Paasch
 
Posts: n/a
Default Re: PHP Newbie: getting domain or url

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0