Count your RSS subscriptions

Hi,

Here is an interesting piece of code to put in a custom block. It will show you how many subscribers you have to you site's xml feeds.


<?php
$rssreaders = db_fetch_array(db_query("SELECT COUNT(DISTINCT(hostname)) AS hostname FROM {accesslog} WHERE path LIKE '%/feed' OR path LIKE 'rss.xml'"));
?>
Follow other readers and subscribe to our RSS feed. Currently we have <?php print $rssreaders['hostname']; ?> RSS subscribers.

Comments