require include
| From: | Richard Baskett | Date: | Wed, 09 Apr 2003 14:26:46 +0000 |
| Subject: | require include | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143085@lists.php.net to get a copy of this message | ||
Ok it used to be that when you included a file.. let's say
web structure
/Users/username/Sites/domain.com/public_html/
a file called index.php in web root
/Users/username/Sites/domain.com/public_html/index.php
would include template/temp.php
/Users/username/Sites/domain.com/public_html/template/temp.php
and temp.php would include a web root file called next.php
/Users/username/Sites/domain.com/public_html/next.php
but for some reason temp.php is looking for the file within it's own
directory instead of the directory that the original file, index.php, doing
all the including is in.. Is there something I need to set in php.ini to
get it to do this? Im not even sure what to google for this problem..
normally if it was my own script I would program for this, but since this is
in a packaged deal.. I would hate to go through the entire thing and edit
all the scripts..
my ini_get("include_path") = /Users/username/Sites/domain.com/phpinc
phpinc is in the same folder as public_html
Thanks!
Rick
"Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you can.
Tomorrow is a new day; you shall begin it serenely and with too high a
spirit to be encumbered with your old nonsense." - Ralph Waldo Emerson