note 16390 added to function.include
| From: | mariachi at usa dot nospam dot com | Date: | Sat, 27 Oct 2001 20:01:05 +0000 |
| Subject: | note 16390 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19507@lists.php.net to get a copy of this message | ||
With $DOCUMENT_ROOT equal to "/home/user/<username>/www" and lots of include files
in /home/user/<username>/include, I just use at the beginning of every file:
require("$DOCUMENT_ROOT/../include/common.inc");
and as common.inc's first line:
ini_set("include_path",".:/home/user/<username>/include");
Of course, just pasting
"php_value include_path .:/home/user/<username>/include" in your .htaccess should do
the trick, but if your isp has configured Apache too secure it will result in a "500 Internal
Server Error"
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+16390
http://master.php.net/manage/user-notes.php?action=delete+16390
http://master.php.net/manage/user-notes.php?action=reject+16390