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
WordPress 2.8 Released!!!
I have been anxiously awaiting the release of WordPress 2.8, and finally the wait is over! The most interesting new feature to me is the new Widgets API, which will allow plugin developers like me to more easily do our thing! Check out other new features in this video:
New WhereAmIWearing.com, WordPress Site, is Rolling!
I am excited and proud to have contributed my WordPress skillz to the legendary Rule29 web shop with the new Where Am I Wearing? website! The site is built on the WordPress framework and features just about every cool widget that you can imagine. I was responsible for translating the design into code and had…
Notes from “Getting the Pretty Stuff In” Presentation at Flashbelt with Paul Burnett
Photoshop Take a bunch of photos of the exterior of a building 1) Select all the photos 2) Tools –> Open into Layers 3) “Auto-align” the layers 4) (with all of the layers selected) Layer –> Smart Objects –> Convert to smart object 5) Layer –> Smart objects –> Stack mode –> Median To stitch…