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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadique
    New Member
    • May 2007
    • 1

    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.requir e]: Failed opening required 'cultbooking.cl ass.php' (include_path=' .;C:\php5\pear' ) in C:\Program Files\Apache Group\Apache2\h tdocs\CultBooki ng_1.5\index.ph p on line 29

    Does anyone know the answer for this problem.


    Regards
    Sadique Gulab
  • Purple
    Recognized Expert Contributor
    • May 2007
    • 404

    #2
    Hi,

    PHP is trying to include a php file called 'cultbooking.cl ass.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.cl ass.php' lives..

    Hope this helps

    Purple

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      You can also set your include path at runtime by using ini_set:

      [code=php]
      ini_set('includ e_path', 'C:\\path\\to\\ include\\files; ' . ini_get('includ e_path'));
      [/code]

      Note that we append the existing include_path setting at the end.

      Separate paths by using ';'.

      Comment

      • Purple
        Recognized Expert Contributor
        • May 2007
        • 404

        #4
        Thanks for that pbmods - another good option to resolve the issue..

        Purple

        Comment

        Working...