这是我的代码。
$filename = "$myMedia catalog/category/ $myImage.png";
$filename = str_replace(" ", "", $filename);
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
上面的
变量
输出了http://50.87.6.244/~storeupp/media/catalog/category/Game_Used.png
,它是存在的。然而,它显示不存在。你有什么想法吗?