dzacharias Posted June 13, 2007 Share Posted June 13, 2007 I am getting this error when accessing a web site that I need to work.. What would cause this? How can I fix it? any help would be appreachited. Thanks, heres the errors that Im getting: Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\3ctsystems.net\httpdocs\modernbill\order\orderwiz.php on line 25 Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\3ctsystems.net\httpdocs\modernbill\order\orderwiz.php on line 25 Fatal error: main() [function.require]: Failed opening required 'config.php' (include_path='.;c:\php') in C:\Inetpub\vhosts\3ctsystems.net\httpdocs\modernbill\order\orderwiz.php on line 25 Quote Link to comment https://forums.phpfreaks.com/topic/55378-can-someone-help-me-with-this/ Share on other sites More sharing options...
mmarif4u Posted June 13, 2007 Share Posted June 13, 2007 Your relative path to the file is wrong thats why this error is coming. Quote Link to comment https://forums.phpfreaks.com/topic/55378-can-someone-help-me-with-this/#findComment-273685 Share on other sites More sharing options...
dzacharias Posted June 13, 2007 Author Share Posted June 13, 2007 mmarif4u, thanks for the reply, Can you describe a little more in depth as to how I can fix the problem? I can do some research I jsut dont know where to start? what does the relative path mean? How can I fix it? thanks, Derek Zacharias Quote Link to comment https://forums.phpfreaks.com/topic/55378-can-someone-help-me-with-this/#findComment-273725 Share on other sites More sharing options...
mmarif4u Posted June 13, 2007 Share Posted June 13, 2007 Path to file mean: For example Your file is in directory: localhost/www/sitetest/include/config.php But mistakenly u give the path in other script as: localhost/www/sitetest/config.php OR other there another way to include files. For example U have sitetest main directory and there are other directories in that directory, One of ur file is in the sitetest/test/abc/show.php Now if ur db file is in the directory sitetest than u will inlcude it like: ../../config.php Hope this will give u some idea. Quote Link to comment https://forums.phpfreaks.com/topic/55378-can-someone-help-me-with-this/#findComment-273727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.