|
Posted by shror on 12/25/07 07:55
On Dec 24, 7:48 pm, NC <n...@iname.com> wrote:
> On Dec 24, 4:42 am, shror <shahi...@gmail.com> wrote:
>
>
>
>
>
> > 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??
>
> Nope. You want to execute arbitrary PHP code on your server, so there
> is no way of "avoiding danger or hacking"... The only half-safe
> solution I can think of is that the PHP server on which the user-
> supplied code runs is virtual (so whatever damage the hackers do will
> disappear when the server is restarted) and separate from the server
> on which the application is hosted.
>
> Cheers,
> NC
Thanks for all your replies.
so now for doing this system what about having a free hosting account
that support the php do you think they could allow me host these
dangerous pages on their servers or they will close my account after
being attacked by any small danger.
also what is the w3schools doing in order to avoid the danger they
face, does any body know.
Thanks for all your help
shror
Navigation:
[Reply to this message]
|