Re: [PHP-DB] Register Globals Question
Whoever told you that was wrong. It will not be deprecated, the default php.ini setting was merely changed. If you have a php.ini file and you upgrade you won't notice any change whatsoever. -Rasmus On Mon, 30 Sep 2002, Ryan Jameson (USA) wrote: I was recently told this: register_globals is a deprecated function due to security problems. It will NOT be available in the next version of PHP. As a result, the recommended way to access is with $_REQUEST[HTTP_USER_AGENT] instead. This is a joke right? I've got thousands of lines of code that rely on the availability of $HTTP_USER_AGENT. I've been doing it that way since 1998... It's not like the PHP guys to release new versions that are incompatible with the old ones. Please tell me this is not for real. Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Register Globals Question
Thank you sir. Ryan -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 4:38 PM To: Ryan Jameson (USA) Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Register Globals Question Whoever told you that was wrong. It will not be deprecated, the default php.ini setting was merely changed. If you have a php.ini file and you upgrade you won't notice any change whatsoever. -Rasmus On Mon, 30 Sep 2002, Ryan Jameson (USA) wrote: I was recently told this: register_globals is a deprecated function due to security problems. It will NOT be available in the next version of PHP. As a result, the recommended way to access is with $_REQUEST[HTTP_USER_AGENT] instead. This is a joke right? I've got thousands of lines of code that rely on the availability of $HTTP_USER_AGENT. I've been doing it that way since 1998... It's not like the PHP guys to release new versions that are incompatible with the old ones. Please tell me this is not for real. Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Register Globals Question
It is deprecated as it creates a massive security hole. However, all you have to do is change the setting in your php.ini file. Set register_globals=On. That's all. However, for all code you write from now on you should use $_POST, $_GET and the like. Read this article. http://www.zend.com/zend/art/art-sweat4.php ~ Matthew -Original Message- From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Register Globals Question I was recently told this: register_globals is a deprecated function due to security problems. It will NOT be available in the next version of PHP. As a result, the recommended way to access is with $_REQUEST[HTTP_USER_AGENT] instead. This is a joke right? I've got thousands of lines of code that rely on the availability of $HTTP_USER_AGENT. I've been doing it that way since 1998... It's not like the PHP guys to release new versions that are incompatible with the old ones. Please tell me this is not for real. Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php