class - Interpret text input as PHP -
I would like users to check a PHP class, which reshape crop and images among other things.
I want to write them a PHP code in a text field, send the form, and then their code will be played. How can I do this?
Or is this the safest way for users to demo a PHP class?
Yes. You can use the eval statement in PHP (which is first linked by John), although be very careful you do not really want that users be able to run the code independently on your machine.
My recommendation will try to come up with a different approach to creating populations - maybe some flexible examples ... but don do let them run the code directly
Comments
Post a Comment