php - Need a safe way to execute external code -


i wondering if possible allow people write , execute php code website without use of "eval" due risks. have googled around , did find answers, not answers looking (call_user_func). not looking not allow people run full php script.

it's small group of people executing server load not issue.

edit 1: users should not able corrup/delete files; users should able create complete scripts.; users should able run html code trigger php php tags used.

you can write own wrapper process around php uses ptrace control execution of child php process prevent opening file handles, connecting network, etc.

that way, if people decide try using malicious code in eval, system calls blocked on native level.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -