I'm trying to find a solution implemented in PHP to extract a single file from a zip archive stored on a non-anonymous FTP.
The Problem is: I can't use a FTP URL like "ftp://user:pass@www.domain.com/archive.zip" to create a valid ZipArchive-object, which could handle the remaining tasks. (I tested this with a local archive.)
I also tried using the Phar extension and the File_Archive package - to no avail.
Java seems to offer a solution, but the server in question only runs PHP.
Does anyone of you have another approach in mind to solve the problem?
Thanks for your help in advance!
If you can install the Pecl library zip then you should be able to use the functions zip_open() and zip_entry_read to do what you want.