Re: [PHP] Textarea to road a text file

2009-10-31 Thread Jean Lee
Yes, I just want to edit a file in the textarea! thank you. Jay Blanchard jblanch...@pocket.com wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.local... [snip] htmlheadtitle. body.. ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle)

Re: [PHP] Textarea to road a text file

2009-10-29 Thread John Black
Jean Lee wrote: Could you explain what was my fault concerned about this case? ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle) { while (!feof($handle)) { $buffer = fgets($handle); $contents = $contents . $buffer; } fclose($handle); } echo textarea

RE: [PHP] Textarea to road a text file

2009-10-29 Thread Jay Blanchard
[snip] htmlheadtitle. 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 .

[PHP] Textarea to road a text file

2009-10-28 Thread Jean Lee
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! -- PHP General Mailing List

RE: [PHP] Textarea to road a text file

2009-10-28 Thread Jay Blanchard
[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

Re: [PHP] Textarea to road a text file

2009-10-28 Thread Andrew Ballard
On Wed, Oct 28, 2009 at 10:39 AM, Jean Lee versus...@ymail.com wrote: 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

Re: [PHP] Textarea to road a text file

2009-10-28 Thread Jean Lee
Thank you, Jay Blanchard and Andrew Ballard!!! Could you explain what was my fault concerned about this case? Thanks in advance! My codes were htmlheadtitle. body.. ?php $handle = fopen(./menu.php, r); $contents = ; if ($handle) { while (!feof($handle)) { $buffer