I'm having problems getting ftp_get to work. I've built a very slim and trim web-based FTP browser for internal use which browses all of the directories on an OS X ftp server. However, I can't seem to get ftp_get to work. It refuses to throw error messages, it just seems to do absolutely nothing. I've looked at the manual pages extensively and tried nearly every combination - am I missing something here? The "done!" prints every time but there's no file written to my disk and no error message. There's some sample code below - thanks very much.
-Cliff
<?php
// previous file sets up $connection and it works fine
// then chdirs to proper directory
$remote = $_GET["f"];
$local = "/home/httpd/web/fileshare/downloads/" . $remote;
ftp_get($connection, $remote, $remote, FTP_BINARY);
echo "done!";
?>