I want the next text area to allow scrolling when the content inside text.txt is filled more than the textarea window. In addition, I want it to automatically scroll to the bottom of the textarea field. Is it possible?
<textarea class="textarea" id="textarea" readonly="readonly" " rows="20">
<?php
$file = fopen("text.txt", "r");
while(!feof($file)){
echo fgets($file);
}
fclose($file);
?>
</textarea>
Thank.
source
share