Re: Zend refuses to include file while parser finds it
| From: | Jochem Maas | Date: | Mon, 01 May 2006 16:16:55 +0000 |
| Subject: | Re: Zend refuses to include file while parser finds it | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235207@lists.php.net to get a copy of this message | ||
John Nichel wrote:
tedd wrote:this is what seems to happen because normally the DOT (as explained by John) is part of the include_path declaration. it certainly does do something!At 1:06 AM -0700 5/1/06, Nicolas Verhaeghe wrote:When I run the Zend debugger, it returns an error telling me it cannot find a certain include, while when I run the site it works fine. My development machine is a WIMP (the server is a LAMP but it's not relevant here). This is not the first include in this site, but the first include inside of an include: require("includes/initiate.php"); I have tried pretty much everything: require("initiate.php"); require("/includes/initiate.php"); require("./initiate.php");Nicolas: Try: require("../initiate.php"); One dot doesn't do anything (that I know of).
where 'current working directory' is the directory of the script that was actually called and not the directory of the current file (something I'm always making a thinko about)../ is the current working directory