I deal with a lot of development sites on my machine, and as such I'm building a landing page for my localhost root that will list out each site, which works great so far. I'd like to add a small thumbnail for each site's favicon, so how can I now search a site directory for the path to the favicon image? Each site has the following data in my script:
URL (localhost)
DocumentRoot
Most of the sites are in PHP, which poses an issue for things like get_file_contents() since the structure isn't always the same for where the 〈link〉 containing the favicon path is located.