Re: Creating a text file

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

 



On 7/20/07, Richard Lynch <ceo@xxxxxxxxx> 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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux