Skip to content

Instantly share code, notes, and snippets.

belgareth

Block or report user

Report or block belgareth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@belgareth
belgareth / a way to download the latest files using PHP through SFTP (SSH2)
Last active Jun 5, 2017
Tried this code to retrieve the newest files from a server using php/ ssh2. The problem is that it only downloads one file instead of multiple files. Any help would be appreciated .
View a way to download the latest files using PHP through SFTP (SSH2)
#!/usr/bin/php
<?php
$username = "username";
$password = "passwor";
$url = 'adress';
// Make our connection
$connection = ssh2_connect($url);
// Authenticate
You can’t perform that action at this time.