How can I detect the content type of a link?
Users can upload links into thee web. And I'd need to save the link type (a video, a image...) in the DB (mysql).
I've found one answer (using the HTTP HEAD) with Java: Selenium 2: Detect content type of link destinations . However I'm using PHP.
Thanks.