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? Quote Link to comment 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); Quote Link to comment Share on other sites More sharing options...
iJoseph Posted October 2, 2010 Author Share Posted October 2, 2010 Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.