Re: Textarea to road a text file

From: Date: Wed, 28 Oct 2009 23:20:32 +0000
Subject: Re: Textarea to road a text file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-299484@lists.php.net to get a copy of this message
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@pocket.com> wrote in message news:31454D514FF9A949B1FDFE294D5D1D80080142@ygex01wal.onecall.local... [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?

« previous php.general (#299484) next »