need to turn on register_globals in php.ini

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
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

need to turn on register_globals in php.ini

Post by nutstretch »

I have just installed oscommerce on my test bed to manipulate and it looks as if i need to turn on register_globals in my php.ini file. I understand in my limited way that this means you have to use get and post to retrieve data from a previous form. oscommerce is asking for this to be turned on. I have 2 questions. I can't find the section to do this. (maybe it is just my stupid eyes today) and if I do, will my gets and posts still work on other sites i am working on?

These are probably really simple stupid questions but today the answers elude me.

Thanks in anticipation

Nuts
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

You may want to read this:
http://fr3.php.net/register_globals
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Post by nutstretch »

Thanks
i realise the problems i think, but i need to test on my site rather than keep uploading to another site. do you know where i turn on the register_globals in the php.ini as I can't find it.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

open the ini file in notepad, click edit > find > type in "register_globals" > hit enter and WALA! :D
Post Reply