Re: Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

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

 



On Fri, August 24, 2007 6:34 am, Suamya Srivastava wrote:

> by doing this can i disable the register_globals?

You can disable register_globals by using these:

$_GET['foo']
$_POST['foo']
$_REQUEST['foo'];
$_COOKIES['foo'];
$_SESSION['foo'];
$_ENV['foo'];
$_SERVER['foo'];

and never, ever, ever, use just plain old $foo for data that was
supposed to come from GET/POST/COOKIE/REQUEST/SESSION/...

register_globals has absolutely nothing to do with whether the session
data is getting passed along or not by either Cookie or TransId.

register_globals has everything to do with whether you know that you
are getting external data or internal data.

You, and others on this list in response to you, have conflated two
very distinct and different issues into one giant snarled knot.

Don't do that. :-)

-- 
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?

-- 
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