Re: Zend refuses to include file while parser finds it
| From: | tedd | Date: | Mon, 01 May 2006 16:04:41 +0000 |
| Subject: | Re: Zend refuses to include file while parser finds it | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235205@lists.php.net to get a copy of this message | ||
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). Also, place the following in your code (initiate.php), run it, and find the correct path: <?php echo("<br/>"); echo("<pre>"); print_r($_SERVER); echo("</pre>"); ?> HTH's tedd -- -------------------------------------------------------------------------------- http://sperling.com