Page 1 of 1

register_globals

PostPosted: 16. June 2008 10:04
by applej
How do you turn ON register_globals I have turned it on at every spot I can find Just installed XAMPP and it works great but can't turn them on in PHP.ini
Thanks

PostPosted: 16. June 2008 16:55
by Nobbie
Run a phpinfo() and search for php.ini (which one is used!?) and register_globals

Re: register_globals

PostPosted: 16. June 2008 22:00
by applej
applej wrote:How do you turn ON register_globals I have turned it on at every spot I can find Just installed XAMPP and it works great but can't turn them on in PHP.ini
Thanks


I am useing PHP 5.2.5
I changed the php.ini and php5.ini and the PHPinfo() still said off so in desperation I changed every cofig and the PHP4 and still it is off.
And that is in xampp/php or is there another one
Thanks

PostPosted: 17. June 2008 00:37
by Dave_L
As Nobbie said, click on the phpinfo() link in the left column at http://localhost/
Look for "Configuration File (php.ini) Path" in the output. That tells you which php.ini file is being used.

After changing the file, you may need to restart Apache (or XAMPP).

If that doesn't fix it, check whether the setting is being overridden in httpd.conf or in an .htaccess file.

P.S. Turning register_globals on is not really a good idea, unless you're just testing something, but you probably already know that.

PostPosted: 17. June 2008 04:08
by applej
Tank you Thank You how dumb am I I was changing it in the PHP folder I changed from a version of WAMP because I had all sorts of problems when I changed to Vista and I am changing a OsCommerce site and it is easier this way. Do I feel stupid now
Thanks
Phil

PostPosted: 17. June 2008 10:39
by sari42
>Look for "Configuration File (php.ini) Path" in the output.

... rather look for "Loaded Configuration File" !