$filename = '/www/test1/*.pdf';
if (file_exists($filename))
{
echo "The file $filename exists";
}
else
{
echo "The file $filename does not exist";
}
上記のコードを使用しましたが、* .pdf ファイルをチェックしますが、すべてのファイルが .pdf 拡張子に属するわけではありません