Bawię się botem gg. Kożyrtam z tej strony: klik. Niestety natknąłem się na problem.
Serwer wyświetla mi to:
Kod
[18:22:07]Connecting to: appmsg.gadu-gadu.pl:80 [18:22:07]Connecting to: 91.197.13.41:8074 [18:22:28]connect() socket_connect() failed: Connection timed out [18:22:28]Server refuse connection
A kod to:
<?php require_once 'phplibgadu.php'; $number = numer; $password = 'haslo'; $recipient = odbiorca; $msg = 'test'; $gg = new GG; $gg->debug_level = 255 & ~GG::DEBUG_HTTP; $p['uin'] = $number; $p['password'] = $password; if (!$gg->login($p)) { return; } $gg->notify(); $gg->send_message($recipient, $msg); /* poniĹźszÄ czÄĹÄ moĹźna olaÄ, ale poczekajmy na potwierdzenie */ while (1) { $e = $gg->watch(); if ($e['type'] == GG::EVENT_ACK) { break; } } $gg->logout(); ?>
PS: Biblioteka pobrana z tej samej strony.