This is pretty non php related but I cannot seem to figure this one out.
I have a 2 directories located on a server:
Ex:
/usr/local/myfiles/admin/
/usr/local/myfiles/inc/
Now different websites use these files, so i have created a symbolic link to them in another location:
Ex:
/www/www.mysite.com/htdocs/admin -> /usr/local/myfiles/admin
Now the files in /usr/local/myfiles/admin
are including a file called config/config.inc.php
this file is where the symbolic links are. Because each site needs its own.
The problem is when you go the the symbolic link, the file is loaded but is looking for the config.inc.php file NOT where the symblic link is but where the actual files really are.
So its looking for
/usr/local/myfiles/config/config.inc.php
but i want it to look for
/www/www.mysite.com/htdocs/config/config.inc.php
Any ideas of what im doing wrong or is it impossible?
Derek
Note; Sorry if this is confusing.