原因是什么?这是剧本的摘录:
// Proceed if file exists
if(file_exists($sourcePath)){
echo "file exists\n";
if(filesize($sourcePath) > 0){
echo "filesize is greater than 0\n";
$pdfFile = fopen($sourcePath,"rb");
$data = fread($pdfFile, filesize($sourcePath));
fclose($pdfFile);
// Search for string
if(stripos($data,$searchFor)){
echo "Success. encrypt found\r\n";
fwrite($errorFileHandler,"Success. encrypt found\r\n");
}else{
.....
}
...
...
可能是什么问题?
答案 0 :(得分:0)