Addressed to: Maxim Maletsky <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
Christian Dechery [mailto:[EMAIL PROTECTED]]
** Reply to note from Maxim Maletsky <[EMAIL PROTECTED]> Fri, 16 Feb 2001
12:18:27 +0900
>
> I never used 50 of them, but I think there's such a thing as 'register
> globals' wchich makes all if the globals become available inside your
> funcs...... no idea how to use it ... I feel like I've seen it in =
> someone
> else's code ...
>
> correct me if I am wrong ...
Consider your self corrected... :)
register_globals is about placing GET/PUT/COOKIE/ENVIRONMENT variables into the
global scope. It has nothing to do with functions.
Rasmus explained why you need to declare variables as global in EVERY function
that uses them here:
http://marc.theaimsgroup.com/?l=php-general&m=97984136422910&w=2
and here:
http://marc.theaimsgroup.com/?l=php-general&m=97717866712033&w=2
You may as well get used to it, it isn't going to change any time soon...
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]