Skip to content

Instantly share code, notes, and snippets.

@TakesTheBiscuit
Created March 18, 2019 20:52
Show Gist options
  • Save TakesTheBiscuit/b59ce78c9756b76c3f734531ae54f2a1 to your computer and use it in GitHub Desktop.
Save TakesTheBiscuit/b59ce78c9756b76c3f734531ae54f2a1 to your computer and use it in GitHub Desktop.
PHP Copy when locked out of wordpress
<?php
// i cant remember where wp-plugins live, lets assume we want everything from the level above?
$output = shell_exec('scp -r ../ your_username@remotehost.edu:/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