On Thu, Feb 05, 2004 at 05:42:54PM -0500, joel boonstra wrote:
<snip>
> # ini_set():
> ini_set('include_path', "{$_SERVER['DOCUMENT_ROOT']}:.");
Replying to myself, it appears that PHP >= 4.3.0 has a family of
functions specifically for tweaking include_path:
http://www.php.net/manual/en/function.set-include-path.php
When using ini_set() or something similar to tweak the include_path, I
would recommend using it in conjunction with a file that is
auto-prepended to all of your .php scripts (assuming you want all of
your scripts to use the same include_path):
# in .htaccess
php_value auto_prepend_file "path/to/init.php"
# init.php
set_include_path('/new/include/path');
You can of course put other stuff that needs to apply to all .php files
in init.php, too.
joel
--
[ joel boonstra | gospelcom.net ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php