flush();
$ftp_ini_datei = $argv[1];
require ('./ftp_class.php');
require ($ftp_ini_datei);
echo "\nCronjob started : ";
echo date("d.m.Y - H:i:s");
echo "\n";
$newftp = new myftp;
if(!$anonymous){
$result = $newftp-connect($host, $user, $password);
}else{
$result = $newftp-connect($host, "anonymous", "mymail@somewhere.com");
}
if (!$result){
$mydir = $newftp-changedir($remote_dir);
[ 查看全文 ]