I have a code which prints logos. The code checks if a file is an image or not.
Currently I'm using this code.
if(@is_array(getimagesize($mediapath))){
$image = true;
} else {
$image = false;
}
But my probems is that this is not very efficient. Maybe It's because it's logos from a external url, or maybe there is a more efficient way.
Any thoughts?