Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4019270
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:05:03+00:00 2026-05-20T10:05:03+00:00

Here is the first error: Warning: require(/hb/includes/constants.php) [function.require]: failed to open stream: No such

  • 0

Here is the first error:

Warning: require(/hb/includes/constants.php) [function.require]: failed to open stream: No such file or directory in C:\wamp2\www\hb\includes\connection.php on line 2

And the second error that immediately follows:

Fatal error: require() [function.require]: Failed opening required '/hb/includes/constants.php' (include_path='.;C:\php\pear') in C:\wamp2\www\hb\includes\connection.php on line 2

Here is the line that it doesn’t like:

require("/hb/includes/constants.php");

I did install a new version of WAMP, but I know the directories/files are fine and the code worked previously and on another server. It seems like none of my require()’s are working anymore. I tried looking around and some suggested to others that they edit their php.ini, but I don’t know what directory I would point to – if you can’t tell I’m pretty noobish regarding all things server related.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:05:03+00:00Added an answer on May 20, 2026 at 10:05 am

    First of all, are your really — really ! — sure that the file /hb/includes/constants.php, that your are trying to include, exists ?

    Considering that the path you requested begins with a /, it looks like you’re using an absolute path… that looks like an UNIX path, but you are on a Windows server…

    If it exists, and PHP still cannot include it, check :

    • that it is readable by your webserver (including the directories) — I’m thinking about UNIX permissions
    • that there is no open_basedir restriction that would prevent PHP from accessing those files.

    BTW, having a warning and a fatal error is the behavior that’s to be expected when using [`require`][2] : the warning is normal *(it comes from `include`)* ; and the fatal error is the difference between `include` and `require`.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

first post here as I'm stuck with my wonderful C++ function. The error I'm
Here is my first attempt at validating XML with XSD. The XML file to
First timer here, and total noob when it comes to PHP and JavaScript. I
I am trying to figure why I am getting this error. **Warning: require_once(\C\wamp\www\PHP with
Error: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 3: parser error : Input is not proper
First here's what I'm using and trying to do: the minimal setup for this
First Question in here :) (AS3) First off, how do I access a variable
This is my first here in Stackoverflow. So I just want to ask question
My first post here :) I have a summer job doing a bit of
my first question here! I have a problem with a piece of code that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.