Dan Anderson wrote:
Be careful when using PHP self. Not all servers support it. If you're
planning on using this script over and over on multiple servers you may
find creating a variable is helpful.
$some_variable = "the_script_name.php";
Then, where you would use PHP_SELF just echo (or whatever)
$some_variable. You will have to change it if the script name changes,
but otherwise it's just a relative path.
Please don't mislead users! That's plain untrue. You're correct that
not all servers have register_globals on, so use
$HTTP_SERVER_VARS['PHP_SELF'].
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php