Are you inside a function when you do this? If so, make sure you use global $PHP_SELF; at the top of the function.
-Rasmus On Sun, 20 Jan 2002, Aasmund Sæter wrote: > I have been trying to get $PHP_SELF to display the filename, but I only get > "Warning: Undefined variable: PHP_SELF ". Isn't this a supposed to a > predefined variable? > > I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache module. > Shouldn't it work then? I read on www.php.net that PHP_SELF wouldn't work if > PHP is running as a command-line processor (CGI verion of PHP?). > > Please help me, I have been looking everywhere for an answer. I got scripts > (not made by me) which uses this variable. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]