Re: Creating a text file

From: Date: Mon, 23 Jul 2007 13:10:54 +0000
Subject: Re: Creating a text file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-259369@lists.php.net to get a copy of this message
On 7/20/07, Richard Lynch <ceo@l-i-e.com> wrote:
On Thu, July 19, 2007 8:33 am, Daniel Brown wrote:
        extract($_POST);
You might as well just turn register_globals back ON (bad!) because you've just done a work-around on $_POST that does exactly what register_globals ON does to $_POST... This is bad. Don't do this. ONLY extract the variables you EXPECT to see in POST. In this case there were only two variables anyway... [shrug] -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?
Yes, but keep in mind, it was a simple, cheap example just to get it to work Out Of The Box(R). I sure as heck don't expect that code to be used. It'll work, but it's.... well, it's ugly. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

« previous php.general (#259369) next »