how exec php code example
Example 1: exec output php
$output = exec('ls');
Example 2: 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);
?>