note 63419 deleted from language.oop5.autoload by bjori
| From: | bjori@php.net | Date: | Tue, 28 Mar 2006 19:36:11 +0000 |
| Subject: | note 63419 deleted from language.oop5.autoload by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106874@lists.php.net to get a copy of this message | ||
Note Submitter: sequla at gmail dot SPAM dot com
----
If you want to have global variables in required file, you have to define them as
$GLOBALS['var'] = ...;
and NOT as
$var = ...;
If you just write $var = ...; $var will not have global scope, it will have __autoload() function
local scope.