Problems with GETCWD()
I have recently migrated to a new hosting company and have moved my site accordingly.
I hit the following issue when I try to access my site:
Warning: include(c:\PHP5/includes/config.php) [function.include]: failed to open stream: No such file or directory in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567
Warning: include(c:\PHP5/includes/config.php) [function.include]: failed to open stream: No such file or directory in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567
Warning: include() [function.include]: Failed opening 'c:\PHP5/includes/config.php' for inclusion (include_path='.;C:\php5\pear') in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567
Configuration: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php
This problem arises because GETCWD is not returning the working directory:
I have changed a couple of scripts to resolve to the correct directory but it seems to find more and more which indicates that it is across a myriad of scripts so changing them all would not be practical.
How do I get around this problem?
Thanks
|