extract zip file in php

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default extract zip file in php

    Hi,

    I have to extract a zip file into a web server in php. I found ZZIPlib
    LIbrary by Guido Draheim which allow to do this but I can't install it. On
    Manual PHP, explanations for install it, are :

    You will need to use the --with-zip[=DIR] configuration option when
    compiling PHP to enable zip support.

    I don't understand where I have to put this command. I tried to put it on
    php.ini and to install extension in php.ini but it doesn't work. I don't
    compile my code because I use php on web server. Do u know how to install
    this library ?
    Or do u know another library easy to install which allow to do zip
    extraction.

    Thanks.
    Severine


    Séverine Donnay Guest

  2. Similar Questions and Discussions

    1. 3.11 update file is corrupt - cannot extract
      For a few days now I have been unable to update my copy of Contribute because the update file I download is corrupted every time. I've tried both...
    2. How to extract images from PDF file through VB.Net
      I am developing a desktop application in VB.Net. I need to extract images from the PDF file. I am using Adobe Acrobat 7.0.5 SDK. I have written...
    3. Extract separate pages of a pdf file
      Is there any way that I can "automatically" separate a 60 page pdf file into 60 separate pdf files? This is a function that I will use a lot. If...
    4. how to extract data in specified format to another file
      HI, I am new to Perl and I need some help regarding tranfering the contents of one file to other file in specified format using perl. the...
    5. actions - extract file name
      You could run contact sheet at the end of your action, you would ahve to select the folder the images are in and then set the image size and it will...
  3. #2

    Default Re: extract zip file in php

    "Séverine Donnay" <sdonnay@winooz.net> wrote in message
    news:cfFKb.12792$BA6.441807@news20.bellglobal.com. ..
    > Hi,
    >
    > I have to extract a zip file into a web server in php. I found ZZIPlib
    > LIbrary by Guido Draheim which allow to do this but I can't install it. On
    > Manual PHP, explanations for install it, are :
    >
    > You will need to use the --with-zip[=DIR] configuration option when
    > compiling PHP to enable zip support.
    >
    > I don't understand where I have to put this command. I tried to put it on
    > php.ini and to install extension in php.ini but it doesn't work. I don't
    > compile my code because I use php on web server. Do u know how to install
    > this library ?
    > Or do u know another library easy to install which allow to do zip
    > extraction.
    >
    > Thanks.
    > Severine
    >
    >
    you have to be the admin of the box and recompile php


    try this, if it works, you can just use unzip to hande your needs

    <?php
    print `unzip`;
    ?>

    note: those are back ticks, not single quotes, same key on the keyboard as
    the ~


    --
    Mike Bradley
    [url]http://www.gzentools.com[/url] -- free online php tools


    CountScubula Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139