lambda - PHP sandbox/sanitize code passed to create_function -


I am using create_function, some user-code to run at the server end. I am looking for any of these two:

  1. Is there any way to process the code passed to prevent some harmful from executing it?
  2. Alternatively, there is a way to specify this code to run in a sandboxed environment so that users can play with something else.

Thank you!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -