You have many options. Do a call to phpinfo() and note all the predefined variables, such as PHP_SELF. There is also the __FILE__ constant, print that too.
Why do you request a function? If it's because $PHP_SELF is not set, that's because the PHP directive register_globals = off. Go through the predefined server array instead, it's sexier: print $_SERVER['PHP_SELF']; See also: http://www.php.net/manual/en/reserved.variables.php Regards, Philip Olson On Sat, 13 Jul 2002, David Duong wrote: > Is their a function that returns an equivalent of $PHP_SELF? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php