Here is my code.
$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";
}
The variable
above outputs http://50.87.6.244/~storeupp/media/catalog/category/Game_Used.png
which does exist. However, it says that it does not exists.
Any idea why?