$is_file_1
和$is_file_2
都是假的,但沒有任何內容插入到我設置的errlog-Batch.txt
文件中。我不知道,因爲沒有腳本錯誤輸出fwrite()沒有寫入空白條目
$dirchk1 = "/temp/files/" . $ch_id . "/" . $data[0];
$dirchk2 = "/temp/files/" . $ch_id . "/" . $data[1];
$is_file_1 = is_file($dirchk1);
$is_file_2 = is_file($dirchk2);
$missing_n == 'file does not exist : ' . '".$data[0]."' . "\r";
$missing_s == 'file does not exist : ' . '".$data[1]."' . "\r";
$renfile_n == 'file can not be move file : ' . '".$data[0]."' . "\r";
$renfile_s == 'file can not be move file : ' . '".$data[1]."' . "\r";
$handle = @fopen("/rec/" . "errlog-" . $batchid . ".txt", "a");
if($is_file_1 == FALSE) {
fwrite($handle, $missing_n . "\n");
} elseif ($is_file_2 == FALSE) {
fwrite($handle, $missing_s . "\n");
}
@fclose($handle);
//exit();
如果你刪除了'@單曲? – 2010-12-12 16:38:49