John Nichel wrote:
tedd wrote:

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).

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!



./ is the current working directory

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).



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to