ninjaghaleb
Member
با سلام
یک سوال فنی
گذاشتن تصویری دلخواه برای online وofline بودن id در سایت با php
این عکس برای online بودن id
این عکس برای ofline بودن id

با تشکر
<?php
$check_it = "http://mail.opi.yahoo.com/online?u=yourid123&m=a&t=1";
$id ="yourid123";
$online="<a href='ymsgr:sendIM?yourid123'><img src='online.jpg' border='0'></a><br>";
$offline="<img src='offline.jpg'><br>";
$file = fopen("$check_it"."$id", "r");
$read = fread($file, 200);
$read = ereg_replace($id, "", $read);
if ($y = strstr ($read, "00")) {
$x = "$offline";
}elseif ($y = strstr ($read, "01")) {
$x = "$online";
}
echo ("$x");
fclose($file);
?>