RE: [PHP] Bug with register_globals on versus 1 and php_value vs php_flag?

From: Date: Tue, 26 Nov 2002 19:34:25 +0000
Subject: RE: [PHP] Bug with register_globals on versus 1 and php_value vs php_flag?
Groups: php.general 
Request: Send a blank email to php-general+get-126159@lists.php.net to get a copy of this message
> -----Original Message----- > From: Daevid Vincent [mailto:daevid@daevid.com] > Sent: 26 November 2002 19:23 > To: php-general@lists.php.net > Subject: [PHP] Bug with register_globals on versus 1 and php_value vs > php_flag? > > > I don't know if this is a known bug or it's supposed to work > like this, > but after randomly trying things, this finally worked: > > <VirtualHost *> > DocumentRoot /home/interact/public_html > ServerName interact > ServerAlias www.interact.com *.interact.* > ErrorLog logs/interact-error_log > CustomLog logs/interact-access_log common > <Directory /home/interact/public_html> > php_value register_globals 1 > </Directory> > </VirtualHost> > > > Whereas: > > <Directory /home/interact/public_html> > php_flag register_globals on > </Directory> > > Didn't work (as I would assume it should) Guess you missed the following note: Note: PHP constants do not exist outside of PHP. For example, in httpd.conf you can not use PHP constants such as E_ALL or E_NOTICE to set the error_reporting directive as they will have no meaning and will evaluate to 0. Use the associated bitmask values instead. These constants can be used in php.ini in http://www.php.net/manual/en/configuration.changes.php 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 (#126159) next »