RE: [PHP-DB] passing variables
| From: | Mark | Date: | Mon, 09 Dec 2002 17:50:35 +0000 |
| Subject: | RE: [PHP-DB] passing variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23959@lists.php.net to get a copy of this message | ||
--- "Ryan Jameson (USA)" <RJameson@usa.ibs.org> wrote:
> I missed the part where he was using an image. Without a value
> property, I don't see how it could pass anything at all....
>
> A note on my recent post, to emulate register_globals do this:
>
> if (!empty($_SERVER))
> extract($_SERVER);
>
> if (!empty($_GET)) {
> extract($_GET);
> } else if (!empty($HTTP_GET_VARS)) {
> extract($HTTP_GET_VARS);
> }
>
> if (!empty($_POST)) {
> extract($_POST);
> } else if (!empty($HTTP_POST_VARS)) {
> extract($HTTP_POST_VARS);
> }
>
>
> This registers all of the different arrays.
And completely nullifies the security value of having
register_globals turned off. But I guess if you don't have access to
the php.ini file this is as good...
> <>< Ryan
>
=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to
defend everyone else's right to the same thing.
-Stolen from the now-defunct Randy's Random mailing list.
***************************************
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com