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 7657535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:03:37+00:00 2026-05-31T13:03:37+00:00

I am having a problem getting xampp to render an existing project I just

  • 0

I am having a problem getting xampp to render an existing project I just began to work on. Its a bit of an odd configuration: This is a Mac with VMWare running a Windows 64 image. The other devs on this project are running strait Windows which is why I’m doing it this way.

The basic problem is running a php script I have inside the project folder inside htdocs. So I get this:

 Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/**htdocs/includes**/page-include.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\**htdocs\mb314\index**.php on line 2

Notice that it is looking for the includes/page-includes.php inside htdocs/ when the actual location of it is htdocs/mb314/ … even though it is not having a problem finding the index.php file inside htdocs/mb314. So not sure what the error message is telling me.

Also, one of the .NET devs on this team suggested I edit my hosts file in (C:\WINDOWS\system32\drivers\etc) to add 127.0.0.1 localhost/mb314 at the bottom. But I don’t know much about the Windows environment and whether 32v64 bit could be a problem or if the VMWare might have something to do with it.

I’m pretty sure this is a basic xampp configuration problem; just with an unusual platform combination … which is why I’m asking for help.

Any suggestions would be 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-31T13:03:39+00:00Added an answer on May 31, 2026 at 1:03 pm

    $_SERVER[“DOCUMENT_ROOT”] is based on your virtual host directory definition in php.ini. But you shouldn’t change it from there. You can set a global configuration variable in your php files when you’re working on a project in its own folder to point its relative folder from the document root.

    I mean: in a file that you include on every file you work on your “mb314” project:

    $base_dir = "/mb314/"; // for example. 
    

    Then you can use your url’s like this

    include_once $base_dir . "includes/page-include.php";
    

    And when you upload your project to the web, you may just change your base_dir variable to:

    $base_dir = "/";
    

    And that’ll be enough.

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

Sidebar

Related Questions

I'm having a problem getting this functionality to work. Situation is: User Drags an
I am having problem getting my tooltip to work when using the jQuery load()
I am having a problem getting my project to link with the PhysX libraries
I'm having a problem getting a custom membership provider to work in SharePoint. The
I have the following code, however im having a problem getting window.location to work
I'm having a problem getting my CSS to work properly in Safari. It was
I'm having a problem getting more memory out of PHP. This is the error
I am having problem getting my partial view to render in ASP.Net MVC 1.0
Im having a problem getting jequery autocomplete to work for rerendered textfields. I have
I'm having a problem getting this type conversion working correctly. My guess is the

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.