Re: [PHP] Textarea to road a text file

2009-10-30 Thread Jean Lee
Yes, I just want to edit a file in the textarea! thank you. ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.local... [snip] . .. " . $contents . ""; ?> [/snip] Try http://us3.php.net/manual/en/function.file-get-contents.php

RE: [PHP] Textarea to road a text file

2009-10-29 Thread Jay Blanchard
[snip] . .. " . $contents . ""; ?> [/snip] Try http://us3.php.net/manual/en/function.file-get-contents.php " . $contents . ""; ?> I am unsure what you want to do here, display the menu in the textarea? Or do you want to be able to edit menu.php in the textarea? -- PHP Gene

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? " . $contents . ""; ?> As Andrew pointed out, you need to use htmlspecialchars() echo "" .htmlspecialchars($contents). ""; The reason for that is because the text may contain html control characters like <>&'" w

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 . .. " . $contents . ""; ?> ""Jay Blanchard"" wrote in message news:31454d514ff9a949b1fdfe294d5d1d80080...@ygex01wal.onecall.lo

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 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 displayed(rendered) in browser > w

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 comp