RE: php-db globals turned off

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx] 
Sent: Wednesday, January 28, 2004 2:21 PM
To: pmiller@xxxxxxxxxxxxxxx
Cc: 'Mignon Hunter'; php-db@xxxxxxxxxxxxx
Subject: Re:  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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux