vaheb
کاربر تازه وارد
- تاریخ عضویت
- 14 اکتبر 2007
- نوشتهها
- 134
- لایکها
- 0
آقا برای نمایش وضعیت در یاهو مسنجر نیاز به یه اسکریپت داشتم . تمام اینترنت رو زیرو رو کردم تا این رو پیدا کردم . ولی کار نمی کنه !!!!!!!!!!!!!!!!
اگه میشه دوستان راهنمایی کنید ! میلاد , سالار , شاهد , مرتضی و ...........
PHP:
<?
// Open a connection Yahoo's servers.
$yahoohandle = fsockopen("profiles.yahoo.com", 80);
if ($yahoohandle)
{
// Send the HTTP request.
fputs($yahoohandle, "GET /vaheb_online HTTP/1.1\nHost: profiles.yahoo.com\n\n");
// Read the resultant page and close the connection.
$page = fread($yahoohandle, 16000);
fclose($yahoohandle);
// Determine filename based on online status.
if (strstr($page, "I'm online now!"))
$filename = "online.png";
else
$filename = "offline.png";
// Read in the data for the chosen image (offline or online).
$imagehandle = fopen ($filename, "r");
$len = filesize($filename);
$image = fread($imagehandle, $len);
fclose($imagehandle);
header("Content-type: image/png");
Header("Content-length: $len");
print($image);
}
?>
اگه میشه دوستان راهنمایی کنید ! میلاد , سالار , شاهد , مرتضی و ...........