php exec command returns true code example
Example: php exec
<?php
$connect = ftp_connect('111.111.111'); //connect to server
$login = ftp_login($connect, 'ftp_username', 'ftp_password');
if($login)
{
if(ftp_put($connect, '/home/user/john/tes.txt','tes.txt', FTP_BINARY))
{
echo "Success";
}
}
ftp_close($connect);
?>