我需要查看CDN上是否存在特定图像。
我尝试了以下方法,但不起作用:
if (file_exists(http://www.example.com/images/$filename)) {
echo "The file exists";
} else {
echo "The file does not exist";
}
即使图像存在或不存在,它始终会显示“文件存在”。我不确定为什么它不起作用...
ITMISS
相关分类