Re: registered globals on localhost (apache)

From: Date: Fri, 23 Feb 2007 21:05:59 +0000
Subject: Re: registered globals on localhost (apache)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249324@lists.php.net to get a copy of this message
On Thu, February 22, 2007 7:40 am, Ross wrote: > I have my RG's switched off in my local .ini but I am tinkering about > with > oscommerce. > > php_value register_globals on > > I tried to change add this line to the .htaccess file in the catalog > folder > but still gives the error > > > Server Requirement Error: register_globals is disabled in your PHP > configuration. This can be enabled in your php.ini configuration file > or in > the .htaccess file in your catalog directory. > > > Can I change the RG settings in tis way on my localhost? Yes, maybe, if in httpd.conf you allowed yourself to AllowOverride correctly. You can use <?php phpinfo();?> in the sub-directory to see if the "Local" value is changed from the "Master" (local ~= .htaccess) "Local" would also reflect any ini_set() calls made before phpinfo(), but that's kind of useless for magic_quotes, which takes its action long before any ini_set() could possibly have any effect. NOTE: If software required register_globals ON, perhaps one should simply not use that software. JMHO. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#249324) next »