RE: [PHP] Predefined variables in PHP 4.2 vs. older version

From: Date: Thu, 25 Apr 2002 10:16:54 +0000
Subject: RE: [PHP] Predefined variables in PHP 4.2 vs. older version
Groups: php.general 
Request: Send a blank email to php-general+get-94531@lists.php.net to get a copy of this message
> -----Original Message----- > From: Pekka Saarinen [mailto:contacts@sci.fi] > Sent: 25 April 2002 11:05 > > Is there a way to reliably detect PHP version and have > $PHP_SELF replaced > with $_SERVER['PHP_SELF'] when executed in 4.2 or newer? What about: if (isset($_SERVER)) $PHP_SELF = $_SERVER['PHP_SELF']; Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#94531) next »