PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Forbidden
You don't have permission to access /<br /><b>Notice</b>: Undefined variable: PHP_SELF in <b>c:\program files\easyphp1-7\www\formtester.php</b> on line <b>16</b><br /> on this server.
$PHP_SELF behaves strangely on some system typing localhost won't work and 127.0.0.1 works and in this case (Mostly) $PHP_SELF won't work and thatz what i have observered.
harsha wrote:$PHP_SELF behaves strangely on some system typing localhost won't work and 127.0.0.1 works and in this case (Mostly) $PHP_SELF won't work and thatz what i have observered.
but using $_SERVER['PHP_SELF'] is better.
uh.. i believe it's because $php_self is a registered global var, and his setting is probably off (which is a good idea).