<?php
$url1 = 'http://dp911.wordpress.com/';
$ch = curl_init($url1);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_exec($ch);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if (200==$retcode) {
echo "$url1 - <font color=\"green\">ONLiNE</font>";
} else {
echo "$url1 - <font color=\"red\">OFFLiNE</font>";
}
?>