[PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
I was wondering if there was a way I can see where people are linking to me from. Can I find this in php? --Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Detect where someone comes from

2006-03-06 Thread jblanchard
[snip] I was wondering if there was a way I can see where people are linking to me from. Can I find this in php? [/snip] HTTP_REFERRER is good to see where people are coming from, if it is set. Are you wanting to see if people have links to your site? If so, you're going to need a spider. --

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
I have banners on other websites. I'm trying to detect who is clicking on what banners. I can have the company that has the banners throw a ? bannercompany='companyname' and do a query on that but I would like to do it just by auto detecting Ben On Mar 6, 2006, at 11:21 AM, [EMAIL PROTECTED]

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
Currently I have an ini file that has the list of banner websites I can make it count problem is: $_SERVER['REFERER'] will give me the full link http://www.domain.com/dir/location/file.php where I just want the http://www.domain.com/ Ben On Mar 6, 2006, at 11:39 AM, Benjamin Adams wrote: I

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Stut
Benjamin Adams wrote: Currently I have an ini file that has the list of banner websites I can make it count problem is: $_SERVER['REFERER'] will give me the full link http://www.domain.com/dir/location/file.php where I just want the http://www.domain.com/ Look at http://php.net/parse_url

Re: [PHP] Detect where someone comes from

2006-03-06 Thread Benjamin Adams
Got it Thanks!! Ben On Mar 6, 2006, at 12:13 PM, Stut wrote: Benjamin Adams wrote: Currently I have an ini file that has the list of banner websites I can make it count problem is: $_SERVER['REFERER'] will give me the full link http://www.domain.com/dir/location/file.php where I just want