actually that's not possible since http does not support directory operations but only commands to access or change one file... maybe u can get ftp or webdav access to the machine, although I did not check whether there's webdav support available for php. The only possibility to list a directory's content in php is to enable the correspondin apache option in a .htaccess file and parse the html output, however, that's only possible if u can change some options on the remote machine.