|
Posted by shror on 12/24/07 12:42
Hi every body,
What I am trying to do is to create a tutorial for my beginning
students for JavaScript and PHP, using a very simple online editor
like the one @ w3schools
So the left window will be the text file code, such as
<html>
<body>
<script>document.write("This is a test.");</script>
</body>
</html>
And the right hand window would display
This is a test.
User can change the text file to make it display differently.
If the left hand side has PHP file, I just want it to be displayed as
a server-processed file, but not to endanger the system, any way to
avoid it from danger or hacking??
I know that I have to create the right side as a page and give it rwe
permissions but I don't understand how to execute the code of the left
side on the fly and output it in the right side page.
Thanks so much!
shror
[Back to original message]
|