http://blockexplorer.com/q/getreceivedbyaddress
I don't recommend scraping the HTML pages.
Neither do I.
Thanks for the API link; I searched Google unsuccessfully for blockexplorer API but that's as far as I went.
Update:
$donation_address=$_GET['addr'];
$ch = curl_init('http://blockexplorer.com/q/getreceivedbyaddress/'.$donation_address);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1) ;
$btc = curl_exec($ch);
echo $btc;
die();
?>