php - Intermittent problems with ftp_nlist -


i have following code. runs without problem, , other times doesn't. nothing changes in code between times runs , fails. when fails, ftp_nlist count comes file count of one. know there more in directory. when first discovered problem, fail once every couple of weeks. failing on daily basis.

does know going wrong or @ issue fixed?

$conn = ftp_connect(recordings_ftp_host); if(!$conn) {     write_log_line("aborted: not connect server:" . recordings_ftp_host . "\r\n", log_file);     exit; } if(!ftp_login($conn,recordings_ftp_user,recordings_ftp_passwd)) {     write_log_line("aborted: not log in server:" . recordings_ftp_host . "\r\n", log_file);     ftp_quit($conn);      exit; }    ftp_pasv($conn, true);  // download file list $files = ftp_nlist($conn,"-t " . archived_recordings); // -t means bring in oldest first. processed first. write_log_line("files found " . count($files) ."\r\n", log_file); 


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -