You are here: Documentation » API Reference » SimplePie » set_favicon_handler()
Table of Contents
set_favicon_handler()
Description
class SimplePie { set_favicon_handler ( [str $page = false], [$qs = 'i'] ) }
Set the handler to enable the display of cached favicons.
Availability
- Available since SimplePie 1.0.
Parameters
page
The file that will handle the rendering of the cached favicon.
qs
The query string that will be used for passing data to the file set in the page parameter.
Examples
Set up the favicon handler
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->set_favicon_handler('./handler_image.php', 'favicon'); // ./handler_image.php?favicon=/cache/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.spc $feed->init(); $feed->handle_content_type(); echo $feed->get_title();
See Also
reference/simplepie/set_favicon_handler.txt · Last modified: 2011/03/06 03:56 (external edit)