NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Failed opening 'config.inc.php' for inclusion


Joined: 12 Mar 2007
Posts: 1
Reply with quote
I have done a standard install, run the DB-Form wizard, hit run and I get the error below:
Warning: include(config.inc.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\nusphere\phped\Projects\easynavs1.php on line 17

Warning: include() [function.include]: Failed opening 'config.inc.php' for inclusion (include_path='.;C:\Program Files\nusphere\phped\php5\..\include_lib;C:\Program Files\nusphere\phped\php5\PEAR') in C:\Program Files\nusphere\phped\Projects\easynavs1.php on line 17

The web server is running on 8080 and HTML display OK.
View user's profileFind all posts by hazleburySend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
The config.inc.php file that is complained about, is that in the same directory as your source file?
(C:\Program Files\nusphere\phped\Projects\)

If it's not, you can either:
* Fix the include_path to include the "C:\Program Files\nusphere\phped\Projects\" directory (in either the php.ini (not adviseable) or via the ini_set function in your sourcefile:
Code:
ini_set ( 'include_path', ini_get ( 'include_path' ) . ':C:\Program Files\nusphere\phped\Projects\'  );

* Include it with a relative path (if the file is in a subdirectory of your sourcefile)

The current directory (working folder) is always included in the include_path (the '.') so specifying
things like
Code:
include ( 'includes/config.inc.php' );
usually work perfectly.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
DBWizard generates this file only if you select "generate new config file" instead of "use existing" Smile

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Failed opening 'config.inc.php' for inclusion
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic