What is the best PHP FTP file upload class? #ftp
Edit
by Bob Wedwick - 10 years ago (2014-10-30)
Send files to a secure FTP site
| A way to send a file to a secure (sftp) site and verify that the file was received. |
Ask clarification
1 Recommendation
PHP FTP Send File: Send or resume uploading files to a FTP server
This class can send or resume uploading files to a FTP server.
It can open a remote file for writing given a stream URL. The file is overwritten if already exists.
The class uploads the contents of a local file to the remote server file.
It writes a block of data at a time and if it fails writing to the remote file, it retries up to a given number of attempts appending data to the remote file from the point it stopped.
The class verifies the integrity of the upload by comparing the MD5 hash of the local file with the MD5 hash of the file sent to the server.
| by Manuel Lemos 26695 - 10 years ago (2014-10-31) Comment
There are many FTP file uploading classes but there are not many that verify the uploaded the file.
This one not only verifies the file upload, but also is very robust as it can try to resume an upload that was interrupted due to some temporary problem. |