Skip to content

Instantly share code, notes, and snippets.

View Marcospucineri's full-sized avatar

Marcospucineri

View GitHub Profile
@mberizzo
mberizzo / PHP Unzip
Last active March 12, 2019 06:57
PHP script that unzip file.zip
<?php
// When i have to upload multiple files in a shared hosting:
// 1. Compress your project and upload to your shared server
// 2. Visit url via shell (ex: "curl http://domain.com/unzip.php &") or any navigator
// Alternative step 2 (sometimes php throw timeout error):
// 1. Create a cronjob that visit unzip.php file (just one time)
error_reporting(E_ALL ^ E_STRICT);