Re: Website Architecture

From: Date: Thu, 05 Feb 2004 22:42:54 +0000
Subject: Re: Website Architecture
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-176952@lists.php.net to get a copy of this message
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 ]

« previous php.general (#176952) next »