I have been struggling with this for a couple days now. I've been looking through tutorials, forums, etc. Nothing seems to work. I'm fairly new at PHP, so I'm just wanting to pinpoint where the problem lies (my code/server permissions/or whatever else). My last attempt was just to replicate DevShed's tutorial on FTP functions. http://www.devshed.com/Server_Side/PHP/Stream/Stream1/page9.html
It connects fine, but I get an error when trying to download. Error opening "file" on "path/to/file" on line 46.
I know people have had this problem before but none of those forums helped. Thanks Scott
can we see your code? or may be just the lines 44 to 48?
where $result=connect function. Here's the get part of the code:
ftp_chdir($result, $cdir);
// download selected files for ($x=0; $x<sizeof($dfile); $x++) { ftp_get($result, $dfile[$x], $dfile[$x], FTP_BINARY); }