hi all:
ehen i echo the var $PHP_SELF, following output i recieve:
Notice: Undefined variable: PHP_SELF in c:\documents and settings\desktop\server\test.php on line 20
i know it is just a notice, but why ?
thanks
Try $_ENV['PHP_SELF'] or $HTTP_ENV_VARS['PHP_SELF']. Use the first one if you're using PHP later than 4.1.0. Anything before that use the second one.
Diego
Hey D, I'm using php4.1.1 How come the only thing that works is: print $PHP_SELF;
and not print $_ENV['PHP_SELF']; or print $HTTP_ENV_VARS['PHP_SELF'];
????
thanks for your help, but when i use those vars following error is displayed (phpversion: 4.2.1):
Notice: Undefined index: PHP_SELF in c:\documents and settings\al\desktop\server\test.php on line 39
thanks for any help
al