$url = "http://dosadasdo.png"; $image = @getimagesize($url); if(is_array($image)) // image exists else // image no exists