By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 781 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Fatal error: require_once() [function.require]: Failed opening

P: 1
Sadique here
I've been installing a free source hotel booking system and I encountered an error while trying to go to the second step in the installation process.

Fatal error: require_once() [function.require]: Failed opening required 'cultbooking.class.php' (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache2\htdocs\CultBooking_1.5\index.php on line 29

Does anyone know the answer for this problem.

Sadique Gulab
May 17 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 404

PHP is trying to include a php file called 'cultbooking.class.php' and it can't find it in the include path defined in PHP.INI initialisation file.. You can either change PHP.INI to include the directory where this file lives, or change the require_once() call on line 29 of index.php to reference the directory where the 'cultbooking.class.php' lives..

Hope this helps

May 17 '07 #2

Expert 5K+
P: 5,821
You can also set your include path at runtime by using ini_set:

Expand|Select|Wrap|Line Numbers
  1. ini_set('include_path', 'C:\\path\\to\\include\\files;' . ini_get('include_path'));
Note that we append the existing include_path setting at the end.

Separate paths by using ';'.
May 18 '07 #3

Expert 100+
P: 404
Thanks for that pbmods - another good option to resolve the issue..

May 18 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.