I am writing a PHP FTP client, that works fine while I FTP to the server that the script is running on. However, when I FTP to a remote site I need under some circumstances (eg setting .htaccess files) to know the absolute path on the REMOTE server to the file being updated (eg /home/sites/site72/web/directory/file.html rather than just /web/directory/file.html).
Is there any way I can find out from an FTP link what the absolute path is on the remote server?