Problems with Setting register_globals to "ON" in

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
parkin
Forum Commoner
Posts: 25
Joined: Wed Jul 23, 2003 3:18 am

Problems with Setting register_globals to "ON" in

Post 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
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post 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.
parkin
Forum Commoner
Posts: 25
Joined: Wed Jul 23, 2003 3:18 am

Post 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:
Post Reply