Re: Textarea to road a text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you, Jay Blanchard and Andrew Ballard!!!

Could you explain what was my fault concerned about this case?
Thanks in advance!
My codes were


<html><head><title>.....
<body>..............

<?php

$handle = fopen("./menu.php", "r");
$contents = "";

if ($handle) {
    while (!feof($handle)) {
        $buffer = fgets($handle);

        $contents = $contents . $buffer;
    }
    fclose($handle);
}

echo "<textarea cols=80 rows=30>" . $contents . "</textarea>";

?>

</body>
</html>



""Jay Blanchard"" <jblanchard@xxxxxxxxxx> wrote in message 
news:31454D514FF9A949B1FDFE294D5D1D80080142@xxxxxxxxxxxxxxxxxxxxxxxxxx
[snip]I want to use Textarea as the text-file viewer and editor of my
homepage. But Textarea doesn't work exactly as i intended.
In sometimes, TextArea doesn't show up and moreover the some parts of
the file are displayed(rendered) in browser without TextArea![/snip]

Not enough information to complete your....request? 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux