PHP sandbox/sanitize code passed to create_function

Posted by kpowerinfinity on Stack Overflow See other posts from Stack Overflow or by kpowerinfinity
Published on 2009-05-05T15:27:37Z Indexed on 2010/03/28 14:23 UTC
Read the original article Hit count: 492

Hello,

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

  1. Is there a way to sanitize the code passed to it to prevent something harmful from executing?
  2. Alternately, is there a way to specify this code to be run in a sandboxed environment so that the user can't play around with anything else.

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about sandbox