[icq-devel] Onlinestatus?



micha armageddon at raydan.de
Fri Nov 23 19:54:26 CET 2001


I'm using this:

<?php
$uin="77315571";
$sock=@fsockopen("wwp.icq.com",80,&$eno,&$est,10) or exit();
fputs($sock,"GET /scripts/online.dll?icq=$uin&img=5 HTTP/1.0\r\n");
fputs($sock,"User-Agent: PHP/$php_version\r\n\r\n");
while (!feof($sock)) {
  $s=fgets($sock,1024);
  if (substr($s,0,strlen("Location: "))="Location: ") {
    $n=trim(substr($s,strlen("Location: ")));
    break;
  }
}
fclose($sock);
Header("Location: http://wwp.icq.com/$n");
?>

-micha

"Flavio C. Prado" wrote:

> Hi everyone,
>
> I know this message was posted a while ago, but looking over my backlogged
> e-mails I discovered it...
>
> It seems the wwp.icq.com server does not accept HTTP/1.0 requests. However,
> fopen from PHP uses exactly that version to make requests.
> I think you could make a socket interface simulating a request like IE of
> Netscape would make...
>
> See you all,
>
> Flávio C. Prado
> flavio_prado at hotmail.com
>
> _________________________
>
> Hi all,
>
> I'm doinga small PHP-thingie, where I need to change some text based on my
> website on wether my ICQ-client is online or offline. Is there any way of
> "reading" an icq-users status from my php-doc? Either if someone has a small
> php-thinige to read it (:-) or ?
>
> In the "old day" I would read the size of the image I can get from
> www.icq.com saying wether an ICQ-no is online or offline, but they've
> changed the way they "serve" the image.. :/
>
> ie:
> $imgPath >
> Heelp! :)
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> -------------------------------------------------
> icq-devel - The forum for ICQ protocol discussion
> For unsubscribe and other mailing list info, see:
> http://www.d.kth.se/~d95-mih/icq/icq-devel/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://vic20.blipp.com/pipermail/icq-devel/attachments/20011123/6950f7ed/attachment.htm 


More information about the icq-devel mailing list