Forum Moderators: coopster
Im not sure how this would cope if you have aliases in there, although I think it should work.
Try
<?php echo dirname(__FILE__);?>
In the future you could always just put this in a file named path.php...and upload it to the directory you want to get the path to. You can then copy/paste it into the script you are using that needs the server directory path.