How can i donwload a folder from a remote host using FTP And PHP?
I have username and password and the folder to donwload...
copy()?
Let me know, thanks!
How can i donwload a folder from a remote host using FTP And PHP?
I have username and password and the folder to donwload...
copy()?
Let me know, thanks!
I've just released 2 new libraries to do such things in FTP / SFTP
Recursively copy files and folders on remote SFTP server (If local_path ends with a slash upload folder content otherwise upload folder itself)
Download a directory from remote FTP server (If remote_dir ends with a slash download folder content otherwise download folder itself)
$port = 22);
For the code here it is but you will need the entire class for small utilities functions dependencies.
Source: http://www.php.net/manual/es/function.ftp-get.php#90910
You can use the FTP functions in PHP:
http://www.php.net/manual/en/ref.ftp.php
EDIT:
See also: PHP download entire folder (recursive) via FTP
You have these choises:
ftp wrapper:
using ftp extension of php
use external program like wget or lftp
lftp -c commands.txt # where commands.txt would be something like: