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
I am excited to announce that our Simple Pull Quote WordPress plugin has been accepted for inclusion into the WordPress.org plugin repository! Install it today and let me know what you think!
I just updated our Simple Pull Quote WordPress plugin to include an external style sheet that you can edit. The plugin is simple and completely customizable via CSS. It uses shortcode and custom fields that make it easy to control where the pull quotes will go.
Tonight, I will be teaching a class for folks who are interested in learning more about blogging. The class, titled PC Web Blogging for Beginners, is offered at Minneapolis’ Washburn High School via Minneapolis Community Education‘s Adult Enrichment program. Anyone can register for only $15. I am excited to be participating in this exciting venture! …