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? Quote 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. Quote 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.... ??? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/63608-http_referer-question/#findComment-317032 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.