By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,350 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,350 IT Pros & Developers. It's quick & easy.

downloading a zip archive from another server

P: n/a
Hello!

I have a PHP-program that opens an archive and operates on its
contents. I would like the program to download the file over http,
possibly from a foreign server, using a URL.
I have tried using ZipArchive::open, with the URL as the filename, but
this gives me an error code 11 (the meaning of which is not documented
anywhere I could see).

How do I accomplish this?

Thanks

Michael
Oct 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
file_put_contents($path, file_get_contents($url));
zipOpen($path);

Or something to that effect. Else, modify the zipArchive source itself and
use file_get_contents instead of whatever operation they use to 'get' stuff
with.
"Michaelp" <mi******@hio.nowrote in message
news:c7**********************************@u28g2000 hsc.googlegroups.com...
Hello!

I have a PHP-program that opens an archive and operates on its
contents. I would like the program to download the file over http,
possibly from a foreign server, using a URL.
I have tried using ZipArchive::open, with the URL as the filename, but
this gives me an error code 11 (the meaning of which is not documented
anywhere I could see).

How do I accomplish this?

Thanks

Michael

Oct 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.