Forum Moderators: coopster
Thanks for any help
lj
I think your paths are wrong
I am using the a php file in inetpub/wwwroot that references other php files 2 and 3 level deep in IIS - inetpub/wwwroot/dir1/dir2/ etc. the include directive in the first file "..\dir1\dir2\foo.php"
file doing the including here
inetpub/wwwroot
file to be included here
inetpub/wwwroot/dir1/dir2/foo.php
and this is your include
"..\dir1\dir2\foo.php"
that would be trying to include
inetpub/dir1/dir2/foo.php
because of the ..\ at the beginning
try "dir1\dir2\foo.php" for your include line
all this based on whether I am understanding the issue correctly.
True, it is an escape character during printing, regular expressions, and the like. However, in the include construct it can be a DIRECTORY_SEPARATOR [php.net]. In Windows this syntax will also work just fine for includes.
Resources:
include_path [php.net]
Strings [php.net]