25 How to unzip a file using PHP on server?

Put this in a file foo.php and put it in the folder to unzip the file on the server and type the URL to this file

<?php 
    //phpinfo(); 
    //echo exec('whoami'); 
 
    $command = "unzip file.zip   > /dev/null 2>/dev/null &"; 
    $output = shell_exec($command); 
        echo "<pre>Done !</pre>"; 
?>