Re: What version did $PHP_SELF still work?

From: Date: Thu, 15 Nov 2001 21:12:24 +0000
Subject: Re: What version did $PHP_SELF still work?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74794@lists.php.net to get a copy of this message
$PHP_SELF still works fine, just make sure that register_globals is on. Also, don't forget that you must define global $PHP_SELF if you need to use it within a function, like so: function foo() { global $PHP_SELF; } Mike John Steele wrote:
Hello, I'm trying this again with a different header. After installing PHP4.0.6 $PHP_SELF is set (empty), and this is breaking many scripts of mine (and others). I can't seem to find any mention of this in the commented manual, or anywhere else for that matter. I can try and install an earlier version, but I'm not sure which one (I'd like to use DBG though). I'd hate to have to go back to 4.0.2! Any advice welcome! John --
/* SteeleSoft Consulting     John Steele - Systems Analyst/Programmer
* We also walk dogs... Dynamic Web Design PHP/MySQL/Linux/Hosting
*  www.steelesoftconsulting.com     jsteele@steelesoftconsulting.com
*/


« previous php.general (#74794) next »