note 109394 deleted from function.include by googleguy

From: Date: Wed, 01 Aug 2012 06:51:01 +0000
Subject: note 109394 deleted from function.include by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189545@lists.php.net to get a copy of this message
Note Submitter: Mike H ontheroadagain4 at excite dot com ---- 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

« previous php.notes (#189545) next »