Re: Website Architecture

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

« previous php.general (#176954) next »