[SOLVED] Problem Displaying PHP Code
Posted: Sun Jun 20, 2004 6:06 pm
Hello guys 
Here is my problem. I am making an application that is esentially like a remote file manager. This program works fine accessing html files, but i get many errors while reading php files. here is my code:
The Problem is that when a php file is loaded up, i get a garbled up mess. What i think is being done is the php code is actually being evaluated. How do i make it so that none of the php code is read, it is just outputted to the textarea element?
Thanks
Deemo
Here is my problem. I am making an application that is esentially like a remote file manager. This program works fine accessing html files, but i get many errors while reading php files. here is my code:
Code: Select all
<?php
$handle = fopen($Page, "r");
$lines = fread($handle, filesize($Page));
echo '<form action="admin.php?page=$Page&act=up" method="post">
<textarea rows="25" cols="100" name="html">$lines</textarea><input type="submit" value="Edit HTML">
</form>';
?>Thanks
Deemo