Created
March 18, 2019 20:52
-
-
Save TakesTheBiscuit/b59ce78c9756b76c3f734531ae54f2a1 to your computer and use it in GitHub Desktop.
PHP Copy when locked out of wordpress
This file contains hidden or 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 | |
// i cant remember where wp-plugins live, lets assume we want everything from the level above? | |
$output = shell_exec('scp -r ../ [email protected]:/some/remote/directory/bar'); | |
// Display the scp output | |
echo "<pre>$output</pre>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment