iJoseph Posted October 2, 2010 Share Posted October 2, 2010 I wasn't sure where to post this, but I thought this would be best as there are most people. I need a script to type in the url from a website and get the favicon as an image. Like if I type in http://www.facebook.com/ I get the facebook favicon displayed as an image. Any ideas how this would be done? Link to comment https://forums.phpfreaks.com/topic/214981-getting-a-favicon-from-a-site/ Share on other sites More sharing options...
jskywalker Posted October 2, 2010 Share Posted October 2, 2010 $file = file_get_contents('http://www.facebook.com/favicon.ico'); file_put_contents('some_local_filename.ico', $file); Link to comment https://forums.phpfreaks.com/topic/214981-getting-a-favicon-from-a-site/#findComment-1118303 Share on other sites More sharing options...
iJoseph Posted October 2, 2010 Author Share Posted October 2, 2010 Cheers Link to comment https://forums.phpfreaks.com/topic/214981-getting-a-favicon-from-a-site/#findComment-1118316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.