For any given site "example.domain.tld" or merely "domain.tld" I need to do the following in PHP:
Any ideas? I'm being stumped by the unreliable fileformat and location of the favicons, but if at all possible I want to avoid downloading the entire source of the page with file_get_contents in order to find it in the headers. Also converting to png seems nontrivial.
Thanks,
Mala
As is typical, I found a passable solution shortly after asking the question - let google do the work for you:
http://www.google.com/s2/favicons?domain=URL
returns a 16x16 png