Adam Adam - 6 months ago 61
PHP Question

How to create an online PHP editor?

So I would like to create a php editor for the browser, I need it because sometimes I make little test codes what makes my computer messy and I always need to delete or manage those files too and I also would like to split the browser into two frames, the first for PHP the second for the page what is edited so I could see the result, and debug it faster.

But I don't really know how should I make it because PHP needs to be executed, it's not enable to save it like HTML.


If this is for your own, internal use only, you can always eval the code received via POST - you just need to pass the code as a string to the function. But don't even think about exposing the service for the world, as by default it opens the possibility for malicious user to do almost everything on the server.