This code works fine on Unix, but when I put it on a windows server, it dosn't seem to want to work at all.
Location.php:
chdir("C://inetpub/vhosts/pspcrazy.com/subdomains/forums/httpdocs/forums/");
echo getcwd() . "\n";
define("NO_REGISTER_GLOBALS", 1);
define("LOCATION_BYPASS", 1);
define("SESSION_BYPASS", 1);
chdir("C://inetpub/vhosts/pspcrazy.com/subdomains/beta/httpdocs/");
See anything wrong with this code when on a Windows server?
It seems to change to the forums directory (as it is printing the correct directory), but can't seem to switch back.
Error:
Warning: chdir(): No such file or directory (errno 2) in D:\inetpub\vhosts\pspcrazy.com\subdomains\beta\httpdocs\location.php on line 14
Also, in the location.php file, when I try and use D:// (or D:/ etc.) it gives me a parse error.
Thanks,
Erik