Re: Editing Files with PHP
| From: | Chris | Date: | Wed, 11 Jul 2007 00:59:20 +0000 |
| Subject: | Re: Editing Files with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258589@lists.php.net to get a copy of this message | ||
David Wonderly wrote:
I am trying to create a small script to open a file and edit it. However, when I open a file with PHP in it the PHP is stripped out. It open as if I was viewing the page source. How do I fix this? Here is the code I am using. <form action="filewrite.php" method="post"> <textarea rows="15" cols="70" name="content"> <?php include($file) ;include actually processes the php file, it doesn't read it in as text. Try file_get_contents -- Postgresql & php tutorials http://www.designmagick.com/