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);
$mydir = $newftp->getdir ();
$merkold _dir = GETCWD ();
ChDir ($local _dir);
$mylist = Array ();
$mylist = $newftp->get_file_list ($mydir);
for ($i =0; $i < sizeof ($mylist); $i + +)
{
$result = $newftp->get_file ($mylist [$i], $mymode, $delete);
}
$result = $newftp->ftp_bye ();
}else{
echo "----------------------------------\ n";
echo "no connection established:(\ n";
echo "----------------------------------\ n";
}
echo "\n\ncronjob stopped:";
echo Date ("D.m.y-h:i:s");
echo "\ n";
?>
http://www.bkjia.com/PHPjc/314191.html www.bkjia.com true http://www.bkjia.com/PHPjc/314191.html techarticle 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 ( .....