note 29552 added to ref.variables
| From: | bbalint at netposta dot net | Date: | Mon, 17 Feb 2003 15:20:15 +0000 |
| Subject: | note 29552 added to ref.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44093@lists.php.net to get a copy of this message | ||
i think there's a stupidity in code: each loop you look after the
php version variable...
and i also think that $_GET won't be an autoglobal variable...
in older phpversions, the GLOBALS is the only aut-global
variable.
won't work:
function a(){echo $_GET['data'];}
might work:
function a(){global $_GET; echo $_GET['data'];}
--
http://www.php.net/manual/en/ref.variables.php
http://master.php.net/manage/user-notes.php?action=edit+29552
http://master.php.net/manage/user-notes.php?action=delete+29552
http://master.php.net/manage/user-notes.php?action=reject+29552