i don't know how to refresh a textarea.
if i have a text file opened on this textarea and i entre some lines into this file, i want to refresh my textarea in ..second automaticaly ..to see the new lines..
<textarea id="chat" rows='38' cols='189'>
<?php
$file1 = "test.txt";
$file2 = fopen($file1,"r");
while(! feof($file2))
{
echo fgets($file2)."<br/>";
}
fclose($file2);
?>
</textarea>
i need help please