Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created December 11, 2012 15:25
Show Gist options
  • Save mageekguy/4259317 to your computer and use it in GitHub Desktop.
Save mageekguy/4259317 to your computer and use it in GitHub Desktop.
<?php
$remoteFile = file_get_contents('ssh2.sftp://user:[email protected]:22/path/to/file');
// See http://php.net/manual/en/wrappers.ssh2.php for more informations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment