Widzicie jakieś dobre rozwiązanie? Zdaje mi się, że to działa na zasadzie ikon z określonymi liczbami czyli ogólnie zwykły favicon.
Coś takiego:

<?php //Read the favicon template from favicon.png //file from current directory $im = imagecreatefrompng("favicon.png"); /* Read the character which needs to be added in favicon from * get request */ $string = $_GET['char']; } else { /* If no character is specified; add some default value */ $string = 'V'; } /* background color for the favicon */ $bg = imagecolorallocate($im, 255, 255, 255); /* foreground (font) color for the favicon */ $black = imagecolorallocate($im, 0, 0, 0); /* Write the character in favicon * arguements: image, fontsize, x-coordinate, * y-coordinate, characterstring, color */ imagechar($im, 2, 5, 1, $string, $black); imagepng($im); ?>
<html> <head> <title>Dynamic unread count favicon in PHP!</title> <STYLE> body, input{ font-family: Calibri, Arial; margin:0px; font-size: 19px; } h1 { margin: 0 0 0 20px; } html, body, #container { height: 100%; } body > #container { height: auto; min-height: 100%; } #header { height:50px; background-color:#ddd; border-bottom:1px solid #aaa; width:100%; font-size: 15px; } #footer { font-size: 12px; clear: both; position: relative; z-index: 10; height: 3em; margin-top: -3em; text-align:center; } .demo { width:150px; height:150px; padding:5px; background-color:#ff8811; position:absolute; top:150px; left:300px; } #content { padding-bottom: 3em; margin: 20px;} </STYLE> </head> <body> <div id="container"> <div id="header"> <h1>Dynamic unread count favicon in PHP</h1> </div> <div id="content"> <p><a href="http://viralpatel.net/blogs/2011/01/dynamic-unread-count-favicon-in-php.html">Click here to view Tutorial</a></p> <p>Enter any character in the following textbox and hit Generate button. The dynamic favicon will be generated and the character will be added into it. Also check the favicon in browser tab. Also check the favicon in the browser tab.</p> <form method="post"> <label>Enter a Character to add in favicon</label> <input type="text" name="char" style="width:40px" maxlength="1"/> <br/> <input type="submit" value="Generate favicon" /> </form> Dynamic Favicon <br/> </div> </div> <div id="footer"> Copyright © <a href="http://viralpatel.net">ViralPatel.net</a> | <a href="http://viralpatel.net/blogs/about">About</a> </div> </body> </html>