Hmm... I think the first part of foreach should be an array... So, more
like
foreach($GLOBALS as $photo)... Unless photo is an array containing photos...
However, how to make a variable become global, I'm not sure of...
"Mike" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> When r
Oh, and to answer your original question: yes, as far as I am aware
register_globals would have to be on for that code to work.
--
Adam Goossens
-
This mail sent through IMP: http://horde.org/imp/
--
PHP Windows Mailing List (http://www.php.
Mike,
The $GLOBALS array contains references to all variables defined in the global
scope. By using the keyword global, you define a variable in the global scope
(and then make it accessible through $GLOBALS).
The superglobals (eg _POST, _GET, etc) don't get this automatically, because
they ar