April 22, 2004

Technorati fault tolerance hack

Technorati seems like a pretty cool idea, but they've been having some growing pains lately. I found that if you use their default javascript method to insert their link, it can hang up loading your blog if Technorati is unavailable.

Here's a PHP way to insert some fault tolerance for any off-site link.


$fp = fsockopen("www.technorati.com", 80, $errno, $errstr, 5);
if ($fp) {
echo "<script language=\"javascript\" type=\"text/javascript\" 
src=\"http://technorati.com/embed/(your #).js\">

Posted by Hal Eckhart at April 22, 2004 05:46 PM | TrackBack
Post a comment
spam and annoying comments will be deleted

Remember personal info?

enter this number security code in the box below (prevents comment spam)