Say I have a symbolic link from '/one/directory/' to '/two/directory/' .
If I echo dirname(dirname(\__FILE__)) , it returns '/one/directory/' .
What is the best way to return '/two/directory' ?
Using an example:
Vhost 'example.com' pointing to `/ two / directory '
example.com/hello_world.php
<?php echo dirname(dirname(__FILE__)); ?>
Returns: '/one/directory'
Expected Results: '/two/directory'
source share