A while back I told you about a neat way to unzip files on the server. Today I learned of a method that does the same thing, however this new method will overwrite files on the server. This is great if you need to revert to an old version of WordPress, as I had to do this morning.
Just create a file called “unzip.php” and paste the following code into that file:
"; system('unzip -o ' . $file); exit; } // create a handler to read the directory contents $handler = opendir("."); echo "Please choose a file to unzip: " . ""; ?>
"; // A blank action field posts the form to itself echo '
Then upload unzip.php to the same directory as the file you want to unzip.
Then navigate to http://yourdomain.com/unzip.php and select the file you want to unzip.
Pretty neat, eh?
Many thanks to Learn CPP.
More posts from themightymo.com
Today I had an issue where I needed to merge two folders, each of which contained many sub- and sub-sub folders that had lots of images. After a lot of trial-and-error and some Googling, I found the best solution is to use the “ditto” command in Terminal like this: That’s it! Hat tip to AppleInsider.
I wasted some time today to bring you (dum dum duuuuum!): Some Surprising Trends in Website Development!
I was recently asked to look into creating some secure http headers as well as forcing a website to load over TLS1.2+. Below are my “how to” instructions for updating these settings within WordPress and Cloudflare. Install & Configure the Cloudflare WordPress plugin. Make sure an SSL Certificate is installed on your host for your…