rendered paste bodyelse { fputs($sock, "GET http://leconjugueur.com/php/newconjugue.php?verbe=$read[4] HTTP/1.1\n"); fputs($sock, "Host: leconjugueur.com\n"); fputs($sock, "Connection: close\n"); fputs($sock, "Accept-Language: fr\n"); fputs($sock, "Accept : text/plain\n"); fputs($sock, "User-Agent : PHP iRC BOT from urban at qnet\n"); fputs($sock, "\r\n"); $good = '/Indicatif/'; $bad = '/Le verbe/'; while (!feof($sock)) { $conjug = fgets($sock); echo $conjug; if (preg_match($good, $conjug) === true) { fputs($fp, "PRIVMSG $read[2] :* Le verbe ".trim($read[4])." existe dans la base de donnée ! Youpi !\n"); } if (preg_match($bad, $conjug) === true) { fputs($fp, "PRIVMSG $read[2] :* Le verbe ".trim($read[4])." n'existe pas ! Cheh !\n"); } } fclose($sock); }