I want to allow users to create own apps with php on my webpage. The problem is they have access to some dangerous commands like chmod(). I'm not sure what to do. 
I want to run their apps with eval(), but I don't know much dangerous commands and I want to prevent from using any of them. So maybe anyone can make a function to run die() when there is dangerous content in the code? Or maybe give a list of commands that users shouldn't be able to run?
EDIT: I don't want to disable eval(). I want to prevent users from using functions that can be endanger the site.
EDIT: I don't own access to php.ini as I'm working on subdomain and there is one php.ini for whole domain. And I don't want to disable commands for whole site, just for one eval...
 
    