Veja o Livro de Ouro
$iArq = fopen("../senha/saida.txt","r");
$iCont = 0;
if (! feof($iArq) ){ ?>
while (!feof($iArq)){
$nome = fgets($iArq,4000);
if ($nome == "") break; ?>
$iCont ++;
echo $iCont;
if (substr($nome,0,2) == "@d"){
echo " - ".substr($nome,-(strlen($nome)-2));
$nome = fgets($iArq,4000);
}
?>
-
$mail = fgets($iArq,4000);?>
-
$coment = fgets($iArq,4000);
while ( strcmp($coment, "----------\n" ) != 0 && ! feof($iArq) ) {
echo $coment;
$coment = fgets($iArq,4000);
}
?>
};
fclose($iArq);?>
};?>