note 101103 deleted from function.eval by peehaa
| From: | peehaa@php.net | Date: | Mon, 09 Dec 2013 11:57:04 +0000 |
| Subject: | note 101103 deleted from function.eval by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197856@lists.php.net to get a copy of this message | ||
Note Submitter: piyush25378 at gmail dot com
----
When using the eval() function like
eval('?>' . $data['content'] . '<?');
Please be sure to check that the short_open_tag is on in php.ini. Otherwise it will append the
opening tag to the string.
If you are using eval function like
eval('?>' . $data['content'] . '<?php'); and you have
short_open_tag on there will be parse error. So if it is required to use function like this turn off
short_open_tags.
Also it is advisable to put a space after <?php to avoid any accidental error.