| 
	
 | 
 Posted by shimmyshack on 12/24/07 22:13 
On Dec 24, 12:42 pm, shror <shahi...@gmail.com> wrote: 
> 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 
 
its not a hard thing to do at all, many worms that ruin novice 
instalations of wordpress and joomla do this in about 5 lines of code, 
the act of securing such a service, limiting the function calls, 
combinations thereof, then sharing resources, preventing dDOS, and 
protecting the machine if something gets through, is quite hard 
though, unfortaunately unless the works already 75% done somewhere, 
it's not gonna be answered here! ;)
 
[Back to original message] 
 |