" . $line . " says: "; $line= chop(fgets($msgsFile,filesize($path))); while($line != SEPARATOR){ $messages.= $line . "
"; $array[]= $line; $line= chop(fgets($msgsFile,filesize($path))); //Get next line } $array[]= $line; $count++; } fclose($msgsFile);//Close the file ?>
Chat
Welcome, !
Post
Remember to logout after you're finished! :)
Posts
" . $array[$i] . ""; ?>
"; //Print first line of message $i++; while($array[$i] != SEPARATOR){ ?>
"; //Print other lines of message ?>