Web Hosting Talk







View Full Version : register_globals and PHP ini :)


UH-Matt
08-15-2002, 04:52 PM
Ok, I have some older PHP scripts which require register_globals to be on.... I know its better to re-write the script - but i just want to get it working for now

so in php.ini i change register_globals = on

none of the scripts (which work on my other server) will work still... the problem is definitely to do with passing variables..

Any ideas would be great.. im going mad! :angry:

clocker1996
08-15-2002, 05:33 PM
restart apache

bitserve
08-15-2002, 10:18 PM
You might do a phpinfo() page, and verify that your changes are being honored. It's possible that you have the php.ini file in the wrong path.

I always just set these parameters in the httpd.conf file, and don't use a php.ini file.

UH-Matt
08-16-2002, 10:34 AM
http://www.unitedhosting.co.uk/exchange.php

As you can see from above, my register_globals is on, yet it still doesnt want to work.. anymore ideas on this matter ?

its making me go mad! :angry:

bitserve
08-16-2002, 10:29 PM
It's probably not the register_globals that is breaking your site, then. It does look like it's on.

You might want to compare what else you compiled in on your other server where it works and the one that it doesn't work on.

I think the most obvious indicator of a problem will be any errors generated by your site.