<?php
$host= '192.168.0.1';
$user = 'test';
$password = 'test';
$ftpConn = ftp_connect($host);
$login = ftp_login($ftpConn,$user,$password);
if ((!$ftpConn) || (!$login)) {
echo 'FTP connection has failed! Attempted to connect to '. $host. ' for user '.$user.'.';
}else{
echo 'FTP connection was a success.';
$directory = ftp_nlist($ftpConn,'');
echo '<pre>'.print_r($directory,true).'</pre>';
}
ftp_close($ftpConn);
?>
<Anonymous ~torrents>
User torrents
Group nogroup
RequireValidShell off
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
/dev/sda1 ext4 /boot
/dev/sda5 ext4 /
/dev/sda6 ext4 /home/ssd
/dev/sdb1 ext4 /var
/dev/sdb5 ext4 /tmp
/dev/sdb6 ext4 /home
/dev/sdc1 fuseblk /media/hdd
/dev/sdd ext4 /media/sdcard
/dev/sda2: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS (0x1f,254,32), end-CHS (0x3ff,254,63), startsector 2, 32765952 sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 32765954, 201160704 sectors, extended partition table
/dev/sdb2: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS (0x3ff,241,56), end-CHS (0x3ff,77,19), startsector 2, 2045952 sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 2045954, 1227735040 sectors