im trying to put the contents of a text file on my server into a textarea on a web page.
this is what i have so far
$out = fopen ("./Descriptions/".$var5, "r");
while (!feof($out)) {
$buffer = fgets($out, 10000);
}
echo "<textarea style='width:100%' name='textFile' wrap='logical' rows='21' cols='42' class='login'>$buffer</textarea>";
fclose($out);
i cant see why this wont work
help is much appreciated 😃
thanks!