Re: [PHP] registered globals on localhost (apache)

2007-02-23 Thread Richard Lynch
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  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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] registered globals on localhost (apache)

2007-02-22 Thread Steffen Ebermann

On Thu, Feb 22, 2007 at 01:40:53PM -, 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?


http://php.net/manual/en/ini.php#ini.list
Below you can find a table explaining the PHP_INI_*-values.

Also you should use php_flag to set a boolean configuration directive.
http://php.net/manual/en/configuration.changes.php#configuration.changes.apache

-- 
Steffen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] registered globals on localhost (apache)

2007-02-22 Thread Ross
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?


R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php