php getcwd() returns wrong directory
Posted: Wed Jan 28, 2009 7:58 am
My client is trying to move his website on his new server but we've come across a really weird problem.
The script is located in: e:\sites\www.domain.com\
getcwd() returns sometimes e:\sites\www.domain.com\demo\mega and sometimes C:\WINDOWS\system32\inetsrv
Both of these directories are wrong, getcwd() should return e:\sites\www.domain.com\
There seems to be something wrong also with functions like opendir, they always worked before now they seem to fail.
Some info about the server:
PHP Version 4.4.9
Windows NT 5.2 build 3790
ISAPI
Microsoft-IIS/6.0
Any ideas what might be causing this?
The script is located in: e:\sites\www.domain.com\
getcwd() returns sometimes e:\sites\www.domain.com\demo\mega and sometimes C:\WINDOWS\system32\inetsrv
Both of these directories are wrong, getcwd() should return e:\sites\www.domain.com\
There seems to be something wrong also with functions like opendir, they always worked before now they seem to fail.
Some info about the server:
PHP Version 4.4.9
Windows NT 5.2 build 3790
ISAPI
Microsoft-IIS/6.0
Any ideas what might be causing this?