hasanatkazmi Posted August 6, 2007 Share Posted August 6, 2007 echo $_SERVER['HTTP_REFERER']; this line of code generally produces this result http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 I just want to get index.php or forums/index.php , how can I? Link to comment https://forums.phpfreaks.com/topic/63608-http_referer-question/ Share on other sites More sharing options...
phpknight Posted August 6, 2007 Share Posted August 6, 2007 I think $_SERVER['SCRIPT_NAME'] would do it or get you very close to it. Link to comment https://forums.phpfreaks.com/topic/63608-http_referer-question/#findComment-316996 Share on other sites More sharing options...
tarun Posted August 6, 2007 Share Posted August 6, 2007 Isn't It This: $_SERVER["PHP_SELF"] Hmm.... ??? Link to comment https://forums.phpfreaks.com/topic/63608-http_referer-question/#findComment-317011 Share on other sites More sharing options...
phpknight Posted August 6, 2007 Share Posted August 6, 2007 I think they return the same value. Link to comment https://forums.phpfreaks.com/topic/63608-http_referer-question/#findComment-317032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.