Hi guys,
I've come across a rather strange, and very anoying problem.
On /some/ PHP sites that we're developing on 2 different servers, files that
are in the root of the website are unable to load files using relative paths
(they need to be given the full
"C:\Inetpub\www root\website\ww w\folder\file.t xt" rather then
"folder/file.txt"). However includes with relative paths still seem to work.
When getcwd() is called it returns "C:\WINNT\syste m32" and trying to read
the current dir prints out the contents of system32.
If pages are even one folder up from the root (eg in folder/page.php) then
getcwd reports the correct folder and relative paths work again.
Also in CGI mode, and on a few other ISAPI php websites defined in IIS, the
paths from the root works fine.
The PHP version we're using is 4.3.1 and 4.3.2.
Is there some reason why some sites have this root problem, while others
don't? I've looked through the different site's config, and there's no
difference I can find
Thanks
Andrew
I've come across a rather strange, and very anoying problem.
On /some/ PHP sites that we're developing on 2 different servers, files that
are in the root of the website are unable to load files using relative paths
(they need to be given the full
"C:\Inetpub\www root\website\ww w\folder\file.t xt" rather then
"folder/file.txt"). However includes with relative paths still seem to work.
When getcwd() is called it returns "C:\WINNT\syste m32" and trying to read
the current dir prints out the contents of system32.
If pages are even one folder up from the root (eg in folder/page.php) then
getcwd reports the correct folder and relative paths work again.
Also in CGI mode, and on a few other ISAPI php websites defined in IIS, the
paths from the root works fine.
The PHP version we're using is 4.3.1 and 4.3.2.
Is there some reason why some sites have this root problem, while others
don't? I've looked through the different site's config, and there's no
difference I can find
Thanks
Andrew