我想检查文件夹,如果它包含 PDF,它将转到其他过程,如果不包含 PDF,它将跳过该过程。这是代码:
<?php
set_time_limit(0);
$savePath = 'D:/AppServ/www/aca/';
$dir = opendir($savePath);
$check = glob($savePath.'*.pdf');
if($check === ''){ exit();} // if not found pdf don't do process below this
// many other process below
?>
但进程仍然运行,如何打破它?谢谢你 :)