PHP Management Enviroment
Posted: Sat Dec 14, 2002 10:11 am
I am currently creating my own PHP management enviroment so that I can easily view, edit, and save changes to any PHP page(s) on my personal sites.. without having to constantly keep uploading files to see if they work.
Everything is running fine at the moment.. apart from one thing which is really getting my hair up!
I'm using a standard <textarea> to display the page I want to edit.. but the problem is the page I'm trying to display is executing it's PHP code before it gets displayed.. so I just see the final results and not the whole page.
Does anyone know a way around this?
Basically all I'm trying to do is READ and DISPLAY a PHP page without it executing.
This code I'm using for this at the moment is.....
......any help or suggestions would be appreciated.
Thank-you.
Everything is running fine at the moment.. apart from one thing which is really getting my hair up!
I'm using a standard <textarea> to display the page I want to edit.. but the problem is the page I'm trying to display is executing it's PHP code before it gets displayed.. so I just see the final results and not the whole page.
Does anyone know a way around this?
Basically all I'm trying to do is READ and DISPLAY a PHP page without it executing.
This code I'm using for this at the moment is.....
Code: Select all
$OPEN=fopen($FILE, "r");
$CONTENT=fread($OPEN, 50000);
fclose($OPEN);
echo("<textarea class=display rows=500 cols=150>");
echo($CONTENT);
echo("</textarea>");Thank-you.