note 63419 added to language.oop5.autoload
| From: | sequlaatgmaildotSPAMdotcom at osu1 dot php dot net | Date: | Wed, 22 Mar 2006 09:41:12 +0000 |
| Subject: | note 63419 added to language.oop5.autoload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106217@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 82.117.194.221
Probable Submitter: 194.247.199.193
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.oop5.autoload.php
Edit -- http://master.php.net/note/edit/63419
Del: integrated -- http://master.php.net/note/delete/63419/integrated
Del: useless -- http://master.php.net/note/delete/63419/useless
Del: bad code -- http://master.php.net/note/delete/63419/bad+code
Del: spam -- http://master.php.net/note/delete/63419/spam
Del: non-english -- http://master.php.net/note/delete/63419/non-english
Del: in docs -- http://master.php.net/note/delete/63419/in+docs
Del: other reasons-- http://master.php.net/note/delete/63419
Reject -- http://master.php.net/note/reject/63419
Search -- http://master.php.net/manage/user-notes.php