WM-MINI2, WM-MEGA FW >= 2.1137 WM-M2 FW >= 3.1137
Send an FTP command and get the response
Send an FTP command to the server and get the response back
$command: String containing the command without line break
string: Full response line from the server
<? $res = ftp_open("ftp.myserver.com",21,"myuser","mypassword"); if ($res) { // get the current directory on the server $res=ftp_command("pwd"); print($res."\r\n"); // will print out something like: 257 "/" is your current location ftp_close(); } ?>
ftp_open() - Open an FTP connection
ftp_close() - Close an FTP connection