RE: [PHP] How is this possible? [Solved]

From: Date: Wed, 28 Oct 2009 18:41:02 +0000
Subject: RE: [PHP] How is this possible? [Solved]
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-299455@lists.php.net to get a copy of this message
From: tedd > I found the problem, which basically was that I had declared a > variable in a preceding script with the same name, namely $user_id. > > When I changed my script to $u_id, everything worked as before. > Clearly, Globals are evil. > > It's a bitch to have to work with code you can't change unless you > are willing to edit over 1500 files. Just keep in mind that register_globals is deprecated and will be going away in a future release of PHP. You might want to start thinking about a strategy to update those files before that happens. Bob McConnell

« previous php.general (#299455) next »