Click to See Complete Forum and Search --> : How? Multiple "include_path" in php.ini


Anon
05-02-2001, 08:23 PM
I have a server that runs many differnt web sites, I want to be able to define the include paths in the php.ini file, but I am getting this terribly long line for the include_path statement: (example)

include_path ="./:/home/www/domain1.com/include:/home/www/domain2.com/include:/home/www/domain3.com/include"

I was wondering if there was a way to concatenate these inside the php.ini file in a way simular to:

include_path = "./"
include_path .= ":/home/www/domain1.com"
include_path .= ":/home/www/domain2.com"

I tried the above but PHP only recognized the first line, and ignored the others.

Anon
05-03-2001, 06:58 AM
:)
I tried the above but PHP only recognized the <last> line, and ignored the others!



Alan T. Miller wrote:
-------------------------------
I have a server that runs many differnt web sites, I want to be able to define the include paths in the php.ini file, but I am getting this terribly long line for the include_path statement: (example)

include_path ="./:/home/www/domain1.com/include:/home/www/domain2.com/include:/home/www/domain3.com/include"

I was wondering if there was a way to concatenate these inside the php.ini file in a way simular to:

include_path = "./"
include_path .= ":/home/www/domain1.com"
include_path .= ":/home/www/domain2.com"

I tried the above but PHP only recognized the first line, and ignored the others.