I'm using getimagesize to check if an image exists or not.
The image is in a remote URL, so i check a link.
If the image exists, the response is given in less then 2 seconds.
If the image doesn't exists e also there is no link of image error, the response is given in less then 2 seconds.
The problem is when the image doesn't exists and there is a link saying (image not found) or something like that.... the getimagesize keeps trying to locate the image for exactly 60 seconds ( i checked with php microtime ).
Other methods also happens the same thing, takes 60 seconds for response... i've tryed with curl, with file_get_contens, get_headers, imagecreatefromjpeg.... all of them take 60 seconds to return false.
Any idea how to reduce that time?