homepage Welcome to WebmasterWorld Guest from 23.20.28.193
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
$_SERVER['PHP_SELF'] or $_SERVER['HTTP_REFERER']?
For clicks tracking?
GreenLeaf




msg:1248989
 5:39 pm on Jan 11, 2005 (gmt 0)

I f i need to fix the page name from which the click was originated, what is better to fix: $_SERVER['PHP_SELF'] or $_SERVER['HTTP_REFERER']? I mean the click to an external resource.
Thanks.

 

Salsa




msg:1248990
 6:26 pm on Jan 11, 2005 (gmt 0)

If I understand you correctly, I think you want $_SERVER['PHP_SELF']. $_SERVER['HTTP_REFERER'] tries to tell you where a visitor came from in order to get to the current page, but when clicking to an external resource, the click is coming from $_SERVER['PHP_SELF'].

I hope this helps.

GreenLeaf




msg:1248991
 6:46 pm on Jan 11, 2005 (gmt 0)

Thanks, this confirmed my feelings :-))

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved