473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

downloading a zip archive from another server

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
1 1500
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: EK9 | last post by:
I have a table contains huge rows of data. Performance issue raised. I am thinking archive some data so that the table will not be that big. The most convience way is move it to another table. The...
0
by: MartinG | last post by:
Hello. I'm trying to download the 64-bit DB2 UDB Personal Edition (LNX_V822_PE_x86_64.tar) from ibm.com using http (not download director). The page says it's 440MB, but every time I've tried...
2
by: MikeY | last post by:
Hi everyone, I've just finished formatting and reinstalling my o/s. Is there a way of downloading past news post older than the last 2 days? It seems that when I sign back up for these groups I...
4
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
3
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
1
by: mahr | last post by:
Hello, is there a way (Win 2003, DB2 UDB 8.1 Fixpack9), that the logs are archived regularly? Our server writes logs (-> archive logs) only 1-3 times per day. I would like to have them more...
1
by: Maury | last post by:
Hello, I would like to download multiple files with one click in a web form link, I know how to download a single file, and I think that a solution is to zip all the files in an archive, and then...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.