How can I understand if a URL returns a web page or not (the URLs are on other servers and can be accessed through the web)...
Checking the extension is not a good idea...
I thought mime-types can help, but I don't know any mime-type-functions in php...