• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

PHP-Bot connectet nicht

Status
Für weitere Antworten geschlossen.

Code_Gear

Neues Mitglied
Hi,

ich hab mir nen kleinen IRC-Bot gschrieben, also bis jetz nur den Teil wo er connecten SOLLTE :-|

Code:
<?php

// Prevent PHP from stopping the script after 30 sec
set_time_limit(0);

// Opening the socket to the Rizon network
$socket = fsockopen("irc.insiderz.de", 6667);

// Send auth info
fputs($socket,"USER rsbot google.de rs :rs bot\n");
fputs($socket,"NICK CM-bot\n");

// Join channel
fputs($socket,"JOIN #gear_test\n");

// Force an endless while
while(1) {

    // Continue the rest of the script here

    while($data = fgets($socket, 128)) {

        echo nl2br($data);
        flush();

    }
}

?>

Also am Server liegt es nicht, hab das schon mit nem fertigen Bot verusucht, der war sofort da...
Hat jemand eine Idee warum das mit meinem nicht klappt?
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben