Re: Creating a text file

From: Date: Fri, 27 Jul 2007 06:23:55 +0000
Subject: Re: Creating a text file
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-259650@lists.php.net to get a copy of this message
On Mon, July 23, 2007 8:10 am, Daniel Brown wrote: > 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] > 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. Don't take this wrong, but... What are the odds the OP has any idea that extract() is ugly and shouldn't be used?... :-) -- 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?

« previous php.general (#259650) next »