downloading a zip archive from another server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michaelp

    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::ope n, 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
  • Oscar Arreyano

    #2
    Re: downloading a zip archive from another server

    file_put_conten ts($path, file_get_conten ts($url));
    zipOpen($path);

    Or something to that effect. Else, modify the zipArchive source itself and
    use file_get_conten ts instead of whatever operation they use to 'get' stuff
    with.


    "Michaelp" <michaelp@hio.n owrote in message
    news:c71907ec-8571-4fb4-bfd7-921b8199904f@u2 8g2000hsc.googl egroups.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::ope n, 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

    Comment

    Working...