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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:45:15+00:00 2026-06-05T04:45:15+00:00

I have the documents at http://www.example.com/ in /home/www/example.com/www running on Debian Squeeze. /home/www/example.com/ www/

  • 0

I have the documents at http://www.example.com/ in /home/www/example.com/www running on Debian Squeeze.

/home/www/example.com/
    www/
         index.php
    php/
         include_me.php

In the php.ini I’ve uncommented and changed to:

include_path =".:/home/www/example.com"

In a script index.php in www, I have require_once("/php/include_me.php"). The output I am getting from PHP is:

Warning: require_once(/php/include_me.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/example.com/www/index.php on line 2

Fatal error: require_once() [function.require]: Failed opening required '/php/include_me.php' (include_path='.:/home/www/example.com') in /home/www/example.com/www/index.php on line 2

As you can see, the include-path is set correctly according to the error. But if I do require_once("../php/include_me.php");, it works. Therefore, something has to be wrong with the include-path.

Does anyone know what I can do to fix it?

  • 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-06-05T04:45:17+00:00Added an answer on June 5, 2026 at 4:45 am
    php/
    

    is a relative path and uses the current directory as a starting point

    ./php/
    

    is a relative path and explicitly declares the current directory (.) as a starting point

    /php/
    

    is a not relative path, this means it’s starting point is the top level directory (the root directory /)

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

Sidebar

Related Questions

I have a simple PHP page (for testing) that simply calls header(Location: http://www.example.com );exit;
I'm following the documents here http://www.yiiframework.com/wiki/278/cgridview-render-customized-complex-datacolumns/ So I have the following in view $this->widget('zii.widgets.grid.CGridView',
This is a nasty one. I have an external link. <a href=http://www.example.com target=_blank> now
I have uploaded different Microsoft Word documents to the directory http://www.mywebsite.com/documents/ Now the problem
I have the following XML document: <application xmlns=http://www.example.com/schemas/app-config/1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://www.example.com/schemas/app-config/1.0 http://www.example.com/schemas/app-config/1.0/app-config-1.0.xsd> <info name=Dummy Application
I use Jsoup to post a form like: Document doc = Jsoup.connect(http://www.example.com/post.php) .data(titolo, titolo)
Say I have an XML document on a web server ( www.example.com/example.xml ). On
i am using the Ajaxy jQuery plugin: http://balupton.com/sandbox/jquery-ajaxy/ when i visit http://www.example.com/#/foo/ the content
I have an xml document like so <cfxml variable=mydoc> <?xml version=1.0 encoding=UTF-8?> <Feed xmlns=http://www.example.com/xs/PRR/SyndicationFeed/4.9
I have a website say, www.example.com with subdirectories www.example.com/sub1 and www.example.com/sub2 . I have

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.