Unzipping remote files
If you don’t have cPanel, SSH or shell access, this little script might make life easier for you. It’s a PHP script so you’ll need to be on a Linux server.
Directions
- Simply create a new PHP file and place this code into it – but remember to change the zip file name and location to match your server.
- Upload the file (I called it unzip.php) to your server.
- Navigate to the page in your browser ie- yourdomain.com/directory/unzip.php, and the script will execute. If all goes well, you’ll get the ‘Unzipping Complete’ message.
Code
Unzipping file. . .Unzipping complete!
Job done!
Remember that this is a very basic script only to unzip a zip file on your server. If you have any tips on how improve it, please let me know in the comments!
