colabus
06-03-2004, 06:09 AM
$FTPip=123.123.123.123;
$FTPport=123;
$LOGfile=123.log;
$LOGsize=filesize($LOGfile);
$FTPid = ftp_connect($FTPip,$FTPport,5);
if ($FTPid) {
echo "connected..<br>";
if (ftp_login($FTPid,$FTPuser,$FTPpass)) {
echo "logged in..";
if (ftp_get($FTPid,$LOGfile,$LOGfile,FTP_BINARY,$LOGsize)) {
echo "Successfully updated $LOGfile..";
}
}
}
ftp_close($FTPid);
I tried using fopen($LOGfile,'a') but it didn't work.. it connects, logs in, just doesn't get the file.. help
$FTPport=123;
$LOGfile=123.log;
$LOGsize=filesize($LOGfile);
$FTPid = ftp_connect($FTPip,$FTPport,5);
if ($FTPid) {
echo "connected..<br>";
if (ftp_login($FTPid,$FTPuser,$FTPpass)) {
echo "logged in..";
if (ftp_get($FTPid,$LOGfile,$LOGfile,FTP_BINARY,$LOGsize)) {
echo "Successfully updated $LOGfile..";
}
}
}
ftp_close($FTPid);
I tried using fopen($LOGfile,'a') but it didn't work.. it connects, logs in, just doesn't get the file.. help