You are here: Get Icon Data « PHP Programming Language « IT news, forums, messages
Get Icon Data

Posted by Mark on 02/01/08 05:07

I've managed to extract the url of a favicon on the web, but now I
need to extract the image data to produce something like

data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAF...

I can read the binary data just fine using file_get_contents() but
that's not what I need... does anyone know how to extract the data of
an image like that? I can't even seem to get the mime type, and
reading the file contents as text doesn't produce a string like that
either... it's all just weird characters. I want to pass that data
into <object data="here" />.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация