Re: including files outside of document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jan 23, 2008, at 4:43 PM, Daniel Brown wrote:

On Jan 23, 2008 4:19 PM, Jason Pruim <japruim@xxxxxxxxxx> 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?

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!




   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@xxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux