i am working with some external data from twitter and occasionally it displays a link to an image in one of its array values.
If i try and use the img tag and display the image i get an empty field.
i am curious if it is possible to test if the link is an image file. i have tried using file_get_contents however the page loads very slowly but it does work.
i am wondering if i could use is_file or file_exists with a url such as
to determine if the file exists as it is not always the case
thanks in advance