note 76458 added to language.oop5.autoload
| From: | emcmanus at gmail dot com | Date: | Tue, 17 Jul 2007 01:04:45 +0000 |
| Subject: | note 76458 added to language.oop5.autoload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128635@lists.php.net to get a copy of this message | ||
Note: if you're experiencing unexpected "failed opening required 'filename.php'
(include..." errors:
If you placed your autoload function in an external file which you're requiring at the head of
every script, be cautious of some odd behavior regarding PHP's idea of the current working
directory.
I ran into some unexpected path issues when my include file was placed in a subdirectory directory.
The solution to my problems was to make sure that the autoload script being included is in the same
directory as the calling script.
----
Server IP: 208.69.120.35
Probable Submitter: 24.63.25.63
----
Manual Page -- http://www.php.net/manual/en/language.oop5.autoload.php
Edit -- https://master.php.net/note/edit/76458
Del: integrated -- https://master.php.net/note/delete/76458/integrated
Del: useless -- https://master.php.net/note/delete/76458/useless
Del: bad code -- https://master.php.net/note/delete/76458/bad+code
Del: spam -- https://master.php.net/note/delete/76458/spam
Del: non-english -- https://master.php.net/note/delete/76458/non-english
Del: in docs -- https://master.php.net/note/delete/76458/in+docs
Del: other reasons-- https://master.php.net/note/delete/76458
Reject -- https://master.php.net/note/reject/76458
Search -- https://master.php.net/manage/user-notes.php