[PHP] How do I get the name of the script?

2002-07-13 Thread David Duong
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

Re: [PHP] How do I get the name of the script?

2002-07-13 Thread Philip Olson
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

Re: [PHP] How do I get the name of the script?

2002-07-13 Thread David Duong
Thnx for hte help, I wanted to keep register globals off, its a security hazard. Philip Olson [EMAIL PROTECTED] wrote in message Pine.BSF.4.10.10207140050140.63499-10@localhost">news:Pine.BSF.4.10.10207140050140.63499-10@localhost... You have many options. Do a call to phpinfo() and