PHP code example of blackpanda-media / ftp-client
1. Go to this page and download the library: Download blackpanda-media/ftp-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackpanda-media / ftp-client example snippets
use BPM\FTP\Connection\Connection;
use BPM\FTP\SimpleFTPClient;
$connection = new Connection('host', 'login', 'password');
$client = new SimpleFTPClient($connection);
// shows the list of folders and files in the root server
var_dump($client->nlist('/'));