======ftp_command======
WM-MINI2, WM-MEGA FW >= 2.1137 WM-M2 FW >= 3.1137
Send an FTP command and get the response
====Description====
string
ftp_command (
string
$command
)
Send an FTP command to the server and get the response back
====Parameters====
$command: String containing the command without line break
====Return Values====
string: Full response line from the server
====Example====
$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();
}
?>
====See Also====
[[ftp_open()]] - Open an FTP connection
[[ftp_close()]] - Close an FTP connection