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
    • 95
    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()

     zip_open(filename)
    

    filename is a required parameter

    you can see bellow example:

    <?php 
     // here call your file path.
    $zip = zip_open("/var/www/html/test/test.zip"); 
    //call while loop
    while($zipFile = zip_read($zip)) 
    { 
    echo "Filename: " . zip_entry_name($zipFile) . "<br>"; 
    } 
    
    ?> 
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: