I am working on a site which is fetching images from a cdn server that has allow_url_fopen in turned off means allow_url_fopen=off.
The problem is that before showing the image in main site we have to check the existence of image in cdn server. If image exists then we will show it otherwise not.
file_exists and file_get_contents will not work as they require allow_url_fopen=on.
Is there any other way to do it???
Any help will be appreciated.
Thanks