try using $GLOBALS[PHP_SELF] no matter where you are at (ie out of a function, in a function, in an array(), etc... ), you will get the correct value
Jim ----- Original Message ----- From: "John Steele" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 4:57 AM Subject: [PHP] What version did $PHP_SELF still work? > 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 [EMAIL PROTECTED] > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]