| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Online Status Indicator Alternate
From: Brett Patterson <brett2_at_umbc.edu>
Date: Sun, 30 Jan 2005 00:54:57 -0500
Hi there.
I'm a relatively seasoned PHPer, but new to cURL. I've only used cURL to
So now I'm working in PHP to create an AIM, Yahoo!, MSN messenger online
So the PHP version using fsockopen isn't working 100% with yahoo. So I'd
I need some help though.
How would I go about transferring this from PHP to cURL?
if($medium == 'yahoo'){
$yahoohandle = fsockopen("opi.yahoo.com/online?u=".$uid."&m=t",
if (!$yahoohandle){
echo $yahoohandle
.'Could not connect to Yahoo!<br />'
.$errno.' :: '.$errstr;
}
else{
$page = file_get_contents($yahoohandle);
print($page);
fclose($yahoohandle);
if (strstr($page, "ONLINE")){
$filename =
}
else{
$filename =
}
$imagehandle = fopen($filename, "r");
if(!$imagehandle){
echo('Image could not be opened');
}
else{
$len = filesize($filename);
$image = fread($imagehandle, $len);
}
fclose($imagehandle);
return $image;
}
}
Thanks for your help.
~Brett
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info