利用國外服務器中轉feedburner的圖標:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/*
* 将$fburl替换为自己的feedburner订阅数图片地址,然后将博客中的图片地址换成此脚本的URL即可
*/
$fburl = 'http://feeds.feedburner.com/~fc/leninlee?bg=99CCFF&amp;fg=444444&amp;anim=0';
$fbfl = 'fb.gif';
$fp = fopen($fburl, 'rb');
if ($fp) {
$fp_local = fopen($fbfl, 'wb');
if ($fp_local) {
while (!feof($fp)) {
fwrite($fp_local, fread($fp, 1024*8), 1024*8);
}
fclose($fp_local);
}
fclose($fp);
}
header('Location: '.$fbfl);
?>

或者:

1
2
3
4
<?php
header('Content-Type: image/gif');
readfile('http://feeds.feedburner.com/~fc/leninlee?bg=99CCFF&fg=444444&anim=0');
?>