couchmonkey
12-16-2003, 11:59 AM
I recently "inheirited" a php site and I've learned that new versions of php set the register_globals directive in php.ini to off by default. This is a problem since all of the code in this site is written assuming that they register_globals is on, but it is off on the server I'm developing on.
My question is, is there a reason why I should switch all the pages over to using $_GET to extract the values from the query string rather than resetting register_globals?
If future versions of php are going to also set register_globals to off by default, that's an obvious reason to swtich, since the code will continue to break in the future, but I'm guessing some of the php experts here might have other reasons for me to choose one method over the other.
My question is, is there a reason why I should switch all the pages over to using $_GET to extract the values from the query string rather than resetting register_globals?
If future versions of php are going to also set register_globals to off by default, that's an obvious reason to swtich, since the code will continue to break in the future, but I'm guessing some of the php experts here might have other reasons for me to choose one method over the other.