You are here: Global and Local include_path settings « PHP « IT news, forums, messages
Global and Local include_path settings

Posted by John Nichel on 02/06/05 01:27

Hey, I'm running a box which hosts quite a few virtual hosts, and I want
to configure it to where all vhosts have access to a global include
directory (for things like PEAR and Smarty), as well as access to a
local include directory for each virtual host. My current config has me
setting paths like this inside of each vhost directive in Apache....

php_value include_path ".:/path/to/global:/path/to/local"

What I'm wondering is if anyone knows of a way to set the global path in
one location, and 'append' the local path in the vhosts directive. Kind
of like on a *nix system where I can set a global path once...

PATH=/usr/bin

And append to that somewhere else on the system....

PATH=$PATH:/usr/local/bin

I've tried setting the global path in the php.ini, and the local path in
both the httpd.conf and .htaccess file, but both of those overwrite the
global path, and since PHP values do not exist outside of php, I can't
set it like above.

Not really a problem if there isn't a way to do it dynamically...it
would just be nice to 'centralize' my global include. TIA

--
By-Tor.com
....it's all about the Rush
http://www.by-tor.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация