RE: [PHP-DB] php-db globals turned off

From: Date: Tue, 27 Jan 2004 20:53:27 +0000
Subject: RE: [PHP-DB] php-db globals turned off
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32664@lists.php.net to get a copy of this message
As mentioned in my first email, PHP and myself think turning the global var reg off is a good thing, especially for inexperienced coders and var definition. $email = $_POST['email'] makes a difference is you are dealing with an application that was built during the 90% of PHP's lifetime where reg global vars was turned on and you want to use that application with your server where with 4.3.2 - it is turned off. Basically $_POST['email'] is already referred to as $email in thousands of lines of code and instead of trying to convert them (legacy application), you just use the extract function. Hope that is a bit clearer. - Paul -----Original Message----- From: John W. Holmes [mailto:holmes072000@charter.net] Sent: Wednesday, January 28, 2004 2:21 PM To: pmiller@system-wise.com Cc: 'Mignon Hunter'; php-db@lists.php.net Subject: Re: [PHP-DB] php-db globals turned off Paul Miller wrote: > Also, many legacy applications use the non $_POST variable > definitions. A problem that I ran into. So how is saying $email = $_POST['email'] going to help you in that case?? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com

« previous php.db (#32664) next »