Re: including files outside of document root

From: Date: Wed, 23 Jan 2008 21:43:24 +0000
Subject: Re: including files outside of document root
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-267945@lists.php.net to get a copy of this message
On Jan 23, 2008 4:19 PM, Jason Pruim <japruim@raoset.com> wrote: > 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].

« previous php.general (#267945) next »