Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created December 11, 2012 15:25
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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:pass@example.com: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