intepreter

Recognizing new line

I've got a fairly complex calculator that prints output when the user inputs ";" (and hits enter.) What I'm trying to do now is allow the user to print output when they hit enter, (without use of semicolon.) I need to know how I can implement this. Side note: The calculator uses tokenization to read user input This is part of the calcu...

Interpret text input as PHP

I want to let users test out a PHP class of mine, that among other things crops and resizes images. I want them to write PHP code in a text field, send the form, and then their code will be run. How can I do this? Or is it other safe ways to let users (anyone) demo a PHP class? ...