Deanznet Posted November 5, 2010 Share Posted November 5, 2010 How come my$_SERVER['PHP_SELF'] echos the filename.php I have a rewrite rule and i need it to echo http://site.com/file/321 instead of filename.php?id=321 Help! Godaddy wont tell me why its doing that Quote Link to comment https://forums.phpfreaks.com/topic/217878-_serverphp_self-echos-the-filename-and-not-the-url/ Share on other sites More sharing options...
rwwd Posted November 5, 2010 Share Posted November 5, 2010 Seriously, I wouldn't use $_SERVER['PHP_SELF']; security issues, exactly what are you trying to achieve, and how are you doing it? Rw Quote Link to comment https://forums.phpfreaks.com/topic/217878-_serverphp_self-echos-the-filename-and-not-the-url/#findComment-1130816 Share on other sites More sharing options...
BlueSkyIS Posted November 5, 2010 Share Posted November 5, 2010 How come my$_SERVER['PHP_SELF'] echos the filename.php to answer your question: Because it's supposed to. Quote Link to comment https://forums.phpfreaks.com/topic/217878-_serverphp_self-echos-the-filename-and-not-the-url/#findComment-1130842 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.