Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is process to unzip a file uisng PHP ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 109
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss what is process to unzip a file uisng PHP ?

    If you have a zip file and you want to unzip the file with php, then you should use zip_open(). This is very simple and useful function for Extracting any zip file.

    syntax of zip_open()

    1. zip_open(filename)

    filename is a required parameter

    you can see bellow example:

    1. <?php
    2. // here call your file path.
    3. $zip = zip_open("/var/www/html/test/test.zip");
    4. //call while loop
    5. while($zipFile = zip_read($zip))
    6. {
    7. echo "Filename: " . zip_entry_name($zipFile) . "<br>";
    8. }
    9.  
    10. ?>

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: