On Thu, Feb 05, 2004 at 04:35:14PM -0600, John Nichel wrote: <snip> > And if document root is different from include path? What if the > include path is outside of document root? You CANNOT rely on > include_path to accomplish this.
Sorry, I should have been more specific. I was implying that you would set the include_path to include your document_root for your whole site, using httpd.conf, .htaccess, or ini_set() (.htaccess probably being the easiest). # httpd.conf or .htaccess: php_value include_path '/path/to/document/root:.' # ini_set(): ini_set('include_path', "{$_SERVER['DOCUMENT_ROOT']}:."); You could also modify the ini_set() method to append document_root to your current include_path setting, using the PHP_INCLUDE_PATH constant. I think. But you're right, you can't rely on the default include_path setting to contain anything useful. If you set it manually, though, it can contain whatever you want. Unless I'm misunderstanding what you're saying... joel -- [ joel boonstra | gospelcom.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php