469,653 Members | 1,819 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,653 developers. It's quick & easy.

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

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
3 51555
404 Expert 256MB

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
5,821 Expert 4TB
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
404 Expert 256MB
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.

Similar topics

14 posts views Thread by saayan | last post: by
1 post views Thread by CHANDARGUPTA | last post: by
2 posts views Thread by leisablu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.