473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

Hello,
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.


Regards
Sadique Gulab
May 17 '07 #1
3 51916
Purple
404 Expert 256MB
Hi,

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

Purple
May 17 '07 #2
pbmods
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'));
  2.  
Note that we append the existing include_path setting at the end.

Separate paths by using ';'.
May 18 '07 #3
Purple
404 Expert 256MB
Thanks for that pbmods - another good option to resolve the issue..

Purple
May 18 '07 #4

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

Similar topics

3
by: Neil Zanella | last post by:
Hello, I have a PHP page which loads OK 80% of the time. However the rest of the time I get the following error: Fatal error: Failed opening required 'DB.php' This really bugs me,...
14
by: saayan | last post by:
Hi, I am using PHP 5.0.1 with Apache 2 on Win XP (SP2). My index.php file has require_once contents.php and also for functions.php. My contents.php file also has a require_once for...
0
by: SHC | last post by:
Hi all, I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and books.xsd (see the attached files below)...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
9
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
1
by: CHANDARGUPTA | last post by:
Warning: require_once(C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/leonardomaya/includes/version.php) : failed to open stream: No such file or directory in...
2
by: leisablu | last post by:
Hello, Im not good in scrpting, its like readind jibberish...lol...My problem is im trying to convert my phpbb 2.0 to phpbb 3.0 and im getting 1 500 internal error and to check my PHP error log. whrn...
2
by: benicio | last post by:
The subject update failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = 6' at line 5. This is...
3
by: pinko1204 | last post by:
My Update function cannot successful update to sql table even don't have any error. Please help to check .....thx PHP1 <?php require_once 'header.php'; ?> <style type="text/css"> <!--
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.