Log in

View Full Version : Problems with GETCWD()


cnecorp
07-09-2010, 01:36 AM
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

Speysider
07-10-2010, 02:39 PM
class_core.php doesn't exist if the error above appears.
The second error will probably be that you reuploaded the vB files and forgot to set the db information in config.php

BirdOPrey5
07-10-2010, 04:35 PM
Do you think it has anything to do with the direction of the slashes? Windows uses \ slashes while linux uses /, so if it's looking for a file called c:\PHP5/includes/config.php it won't find it even if c:\PHP5\includes\config.php exists.