Created
July 7, 2018 20:41
-
-
Save onjin/b56f961f580e945cd26ed9235098091f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
file_put_contents('latest.zip', fopen('https://wordpress.org/latest.zip', 'r')); | |
system('unzip ./latest.zip'); | |
system('rm ./latest.zip'); | |
system('mv wordpress/* .'); | |
system('rmdir wordpress'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment