$bnc = fsockopen("bnc.micr0be.com",$_POST['port'],$errno,$errstr,5); if($bnc === TRUE and feof($bnc) === FALSE) { $bnc = fsockopen("bnc.micr0be.com",$_POST['port'],$errno,$errstr,5); if($bnc === TRUE and feof($bnc) === FALSE) { $data = trim(fread($bnc01, 1024)); $tab = explode(" ",$data) ; if(strtolower($tab[0]) == "notice") { printf('$data = %s', $data); } } }