Detect yahoo status
$img = file_get_contents('http://opi.yahoo.com/online?u='.$yahoo.'&m=l&t=12&l=us');
if( strpos($img,'NOT ONLINE') )
{
echo '';
}
else
{
echo '';
}
Detect skype status
$url='http://mystatus.skype.com/balloon/yourskype';
$size= getSizeFile($url);
if($size==1808)
echo 'online';
else
echo 'offline';
function getSizeFile($url) {
if (substr($url,0,4)=='http') {
$x = array_change_key_case(get_headers($url, 1),CASE_LOWER);
if ( strcasecmp($x[0], 'HTTP/1.1 200 OK') != 0 ) { $x = $x['content-length'][1]; }
else { $x = $x['content-length']; }
}
else { $x = @filesize($url); }
return $x;
}