I have a script that is symlinked from one folder to another
/var/www/default/index.php
which is symlinked to
/var/www/mysite/index.php
However when i call DIR from mysite the path resolves to the origial path under default. How do i make it return the mysite path (the symlinked folder, not the actual folder)
var_dump($_SERVER)
to see if any of the path variables contain the path you are needing. – Dira