Re: including files outside of document root
| From: | Jason Pruim | Date: | Thu, 24 Jan 2008 18:05:51 +0000 |
| Subject: | Re: including files outside of document root | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268021@lists.php.net to get a copy of this message | ||
On Jan 23, 2008, at 4:43 PM, Daniel Brown wrote:
On Jan 23, 2008 4:19 PM, Jason Pruim <japruim@raoset.com> wrote:Holy frickin' crap.... I had never even thought about it, but it works great! it also helps to make the app more portable because I can set the include path in there so that they don't have to change it.... You just made my life so much earlier! Thank you!Okay, so I have this mostly working now! if I put my ini_set("include_path", "blah/to/balh"); on each and every page. I know I could include a file that is in the document root which specified that, but I was wondering if I was missing something? Obviously other then changing the php.ini file?You do know you can set overrides for PHP in .htaccess, or even have a whole php.ini file in the directory in which you're working, right?
You can either set php_flag include_path path/to/blah in
.htaccess (without the backticks, of course), or you can place a
php.ini file in the same directory as the files to override the values
(if they're INI_PERDIR or similar, anyway).
--</Dan>
Daniel P. Brown
Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since
Nineteen-Seventy-[mumble].
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@raoset.com