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 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 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. 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
Archived
This topic is now archived and is closed to further replies.