Re: PHP_SELF & SCRIPT_NAME differences

From: Date: Tue, 12 Oct 2004 23:31:16 +0000
Subject: Re: PHP_SELF & SCRIPT_NAME differences
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199315@lists.php.net to get a copy of this message
Jordi Canals wrote:
I'd like to know the difference by using the $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] variables. After I read the manual, I have not found the difference betwen the two when used in a Web Script. Also, in all tests I've done, I get the same result in both variables.
PHP_SELF seems to be more reliable as SCRIPT_NAME isn't populated on some OS, in my experiences. But if both are present, they'll have the same value. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#199315) next »