Forum Moderators: coopster

Message Too Old, No Replies

Adding include_path_2 in php.ini

Doable?

         

henry0

12:59 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would like adding a second include path
in order to serve all my includes from that new added path
How will I do it?
Then How do I call it from my scripts?

using the following (as per Coopster's)?
ini_set('include_path',
realpath($_SERVER['DOCUMENT_ROOT'] . '/../includes/')
. PATH_SEPARATOR
. ini_get('include_path'));

coopster

4:39 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Just concatenate another PATH_SEPARATOR and the next include_path, henry0.
ini_set [php.net]('include_path [php.net]', 
realpath [php.net]($_SERVER [php.net]['DOCUMENT_ROOT'] . '/../includes/')
. PATH_SEPARATOR
. '/my/next/include/path/'

. PATH_SEPARATOR [php.net]
. ini_get [php.net]('include_path'));

henry0

5:36 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



excellent
Thanks Coopster