显示 FeedBurner 订阅数图标的最简单方法

基本上所有的虚拟主机都有 curl 这个工具,利用 curl 抓取 FeedBurner 订阅数图标到本地无疑是一个行之有效的方法,避免了每次到 feedburner 请求的等待时间,而且当 FeedBurner 被和谐的时候,该方法依然有效,只要你的服务器还能够 ping 通 FeedBurner。

//添加 cron 任务
0 7 * * * curl -o /the_path_to_store/feeds.gif http://feeds2.feedburner.com/~fc/Centeur?bg=000000\&fg=FFFFFF\&anim=0

上述 cron 任务的含义为每天早上 7 点抓取 FeedBurner 订阅数图标存储到本地,路径为 /the_path_to_store,名称为 feeds.gif,接下来你就可以在你的博客中利用本地的 feeds.gif 显示你的 FeedBurner 订阅数了。一般的虚拟主机都支持添加 cron 任务,所以这个方法具有一定的普适性。

Tags: ,

This entry was posted on Monday, June 8th, 2009 at 8:17 am and is filed under wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Posts you may enjoy

2 Responses to “显示 FeedBurner 订阅数图标的最简单方法”

gravatar image

Xiao3 June 14th, 2009 at 10:12 pm | reply

你说的这个是在空间上面修改吗?

gravatar image

Centeur June 15th, 2009 at 6:57 am | reply

@Xiao3:一般的主机应该都有个管理后台吧,例如 cpanel 什么的,在里面可以添加。

Leave a Reply

Please copy the string 0kIeNh to the field below: