note 47923 deleted from function.eval by sean
| From: | sean@php.net | Date: | Mon, 06 Dec 2004 00:24:38 +0000 |
| Subject: | note 47923 deleted from function.eval by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81419@lists.php.net to get a copy of this message | ||
Note Submitter: phpnet at mechintosh dot com
----
One useful application of eval() is testing PHP snippets. I created a simple two-frame page where
you input code in the left frame's form, and can then submit it to the right frame to see the
results.
This way you can test if snippets work, write new functions while testing every part, etc. File and
HTTP operations work, database, cookies, even classes.
There's also a pulldown menu of 'pre-fab' snippets that were saved inside the file
itself, and which will load into the textarea on the left. At the moment these are a Curl session, a
list of HTML entities and a 'Form to self' thing which is tricky to explain :-)
You can add new ones as well, the comments explain how to.
http://dev.expocom.nl/functions.php?id=67
----
Reason: useless note