bro..
someone tell me i must change fopen with curl_init
and i done... bellow the script i have change but why hothing show in result..
you can see in my website www.nofiyanti.info on rigth bar Site Owner
can u all help me how to change it rightly ..
i dont have knowledge about script..
the red script is what i was changed..
Code:
<?php
if(ereg(basename (__FILE__), $_SERVER['PHP_SELF']))
{
header("HTTP/1.1 404 Not Found");
exit;
}
ob_start();
// user id masukkan disini, dipisahkan dengan koma
$id = array("mudies_05",
"syafira_salsabila31");
// gambar online dimasukkan disini sesuai dengan urutan ID diatas
$online = array("http://www.nofiyanti.info/images/kingon.png",
"http://www.nofiyanti.info/images/queenon.png");
// gambar offline dimasukkan disini sesuai dengan urutan ID diatas
$offline = array("http://www.nofiyanti.info/images/kingoff.png",
"http://www.nofiyanti.info/images/queenoff.png");
for($i=0;$i<count($id);$i++)
$ch = curl_init("http://opi.yahoo.com/online?u=".$id[$i]."&m=t","r");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$status = curl_exec($ch);
curl_close($ch);
if($status == $id[$i]." is ONLINE"){
echo "<div align='center'><a href='ymsgr:sendIM?".$id[$i]."'><img border=0 src='".$online[$i]."'/></a><br /><br /></div>";
} else {
echo "<div align='center'><a href='ymsgr:sendIM?".$id[$i]."'><img border=0 src='".$offline[$i]."'/></a><br /><br /></div>";
}
$out = ob_get_contents();
ob_end_clean();
?>
Bookmarks