I have virtual domains setup on my linux apache server along with php. I have my php.ini include path setup like so:
; UNIX: "/path1:/path2"
include_path = ":/var/
Now, when i include a file from site2 such as:
include("config.php"
php will get the config.php from site1 instead of site2 like i want it too. Really what i want to know if there is a way that php can figure out what virtual site is being
acecssed and go to that sites "include" path for any
particular file.
Does that make sence???
So when i include a php file from site1 its include path is site1, an likewise for site2.
; UNIX: "/path1:/path2"
include_path = ":/var/
Now, when i include a file from site2 such as:
include("config.php"
php will get the config.php from site1 instead of site2 like i want it too. Really what i want to know if there is a way that php can figure out what virtual site is being
acecssed and go to that sites "include" path for any
particular file.
Does that make sence???
So when i include a php file from site1 its include path is site1, an likewise for site2.