I was trying to build an application that will download some files from various ftp servers to a local directory. Later I would upload them to other ftp servers.
The application is built using Zend framework.
The thing is I can't find a class to handle ftp download/upload functions in Zend framework.
The only class available is Zend_File_Transfer
which has the following comment:
Note: Limitation
The current implementation of Zend_File_Transfer is limited to HTTP Post Uploads. Other adapters supporting downloads and other protocols will be added in future releases. Unimplemented methods will throw an exception. For now, you should use Zend_File_Transfer_Adapter_Http directly. As soon as there are multiple adapters available you can use a common interface.
I need to be able to do the following:
Is there a solution to this problem in Zend framework? Could you recommend an alternative library for ftp operations ?
Thanks in advance
UPDATE:
Check out this php5 wrapper for the builtin FTP functions: https://github.com/dg/ftp-php it has some exception handling stuff you might be able to use.
This is a fully OOP php ftp library i build it in my self (hard working), its unit tested and it will works for your purposes perfectly. php-ftp-client
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With