note 109394 added to function.include
| From: | MikeHontheroadagain4atexcitedotcom | Date: | Fri, 13 Jul 2012 15:47:52 +0000 |
| Subject: | note 109394 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189123@lists.php.net to get a copy of this message | ||
Beware trying to include a file without a specific include path set or included (file name only), of
which there are duplicate copy(ies) with identical file name on the site, but in different
locations; just spent a few merry hours (not) trying to find out why a module I'm editing
refuses to show any different web page behaviour!
Because I didn't know another, earlier, copy of it was in the root level of the site, instead
of the sub-folder where it's supposed to be (as just one instance of the file), so PHP kept
fetching the one from the top root level. Doh!
NB: the module doing the include() is also in the same sub-folder, but it's interesting that
PHP still defaulted to searching the root level first, and used the one found there.
HTH
----
Server IP: 87.124.126.49
Probable Submitter: 62.56.61.197
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/109394
Del: integrated -- https://master.php.net/note/delete/109394/integrated
Del: useless -- https://master.php.net/note/delete/109394/useless
Del: bad code -- https://master.php.net/note/delete/109394/bad+code
Del: spam -- https://master.php.net/note/delete/109394/spam
Del: non-english -- https://master.php.net/note/delete/109394/non-english
Del: in docs -- https://master.php.net/note/delete/109394/in+docs
Del: other reasons-- https://master.php.net/note/delete/109394
Reject -- https://master.php.net/note/reject/109394
Search -- https://master.php.net/manage/user-notes.php