Forum Moderators: open
I am having big problems with relative path references in my scripts. include()s and file handlers fail with "no such file" errors.
These references usually refer to some file in a subdir relative to the current script. I.e.
include("includes/script.php")
Occasionally, from a current script also in a subdir...
include("../includes/script.php")
The problems occur with the site as an application or virtual directory (I have tried both) with virtual path site/ in both cases.
It works fine if the site is copied to c:\wwwroot\site\
So I know it is not a PHP issue per se.
To be clear, in the former case, localhost/site fails, but in the latter case, localhost/site is fine.
The exact same script also worked fine in a virtual directory under IIS6. I am trying to set it up just the same on a new system.
Help?