note 47923 added to function.eval

From: Date: Mon, 06 Dec 2004 00:02:13 +0000
Subject: note 47923 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-81417@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47923 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47923&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47923&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81417) next »