membuat status YM dengan php ..

<?php
$id = “ai.click@rocketmail.com”; //Ubah sesuai Yahoo ID anda
$online = “images/online_ym.png”; //URL ke gambar jika status online
$offline = “images/offline_ym.png”; //URL ke gambar jika status offline
$buka = fopen(“http://opi.yahoo.com/online?u=&#8221;.$id.”&m=t”,”r”)
or die
(“<img src=’http://opi.yahoo.com/online?u=&#8221;.$id.”&m=g&t=2’/>”);
while ($baca = fread( $buka, 2048 ))
{ $status .= $baca; }
fclose($buka);
if($status == $id.” is ONLINE”){
echo “<a href=’ymsgr:sendIM?”.$id.”‘><img border=0 src='”.$online.”‘/></a>”;
} else {
echo “<a href=’ymsgr:sendIM?”.$id.”‘><img border=0 src='”.$offline.”‘/></a>”;
}
?>

Pos ini dipublikasikan di joomla. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s