×

HOW TO UNZIP FILES DIRECTLY ON THE SERVER?

HOW TO UNZIP FILES DIRECTLY ON THE SERVER?

There are two ways to extract .zip files directly on the server: 

1.The first one is by using SSH 
->Run the following command over SSH: 
unzip theziparchive.zip 

2.The second way is with PHP script. 
-> Create file unzip.php in the current directory where your zip file is and add to the file the following script: 

<? 
‘unzip theziparchive.zip’; 
?> 

Run file unzip.php in a browser to execute the php script, that will trigger file to be unzipped.