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 liveblogging from Mark Gason’s presentation at FlashMN. These are my notes. Check out Mark’s page of resources. It contains links to tutorials as well as all sorts of other Papervision 3D-related stuff. http://gasolicious.com/flashstuff/PV3D_presentation.html Swift 3D is better than Papervision 3D in some ways: – You can model in Swift 3D, but AutoCAD also…
Yesterday I discovered the new Fluency 2.0 plugin for WordPress 2.7. It does a fantastic job of cleaning up the admin interface and makes the back-end WordPress experience much better for users.
We have just teamed up with one of the web’s finest search engine optimization gurus, Greg Cryns, and will now be offering his services to you, our customers! For you, our customer, this means that we now have added expertise in driving targeted traffic to your website. Greg has over a decade worth of search…