Page 1 of 1

Problems with Setting register_globals to "ON" in

Posted: Wed Feb 25, 2004 12:07 pm
by parkin
Hi..

I know it's a newbie sort of question.. But I'm really stuck.. :(

I've got a problem with setting the register_globals = On instead of Off in my php.ini-dist file

I've edited it in my php.ini-dist file and saved it.. When I check my php.ini file it is set as "On". But when I display the information with phpinfo(), my register_globals remain "Off"..

I've tried restarting the apache server and my computer(running XP Home, using php4), both which didn't work. As well as using ini_set() method in php to edit the file.. I later found that it would not work for register_globals.

Does anyone have any ideas or can explain why I'm getting this?
Any comments/ help.. is appreciated :)
Thanks alot! :D

Posted: Wed Feb 25, 2004 4:55 pm
by uberpolak
Are you sure it's in the php.ini file being used and not the -dist file (if you didn't just rename it when you installed)? The -dist file won't affect anything. Sorry if I've misunderstood, but it sounds like this might be your problem.

Posted: Thu Feb 26, 2004 1:01 am
by parkin
Hahaha..

Can't believe I missed that one out.. I actually changed the php.ini-dist file in my php folder.. and it wasn't reading from there.. :| It was reading from my apache folder's one..

Changed it.. And it works! YAY :D

My Carelessness... :?

Thanks uberpolak for pointing that out! :wink: