note 89109 deleted from function.eval by peehaa
| From: | peehaa@php.net | Date: | Mon, 09 Dec 2013 11:56:12 +0000 |
| Subject: | note 89109 deleted from function.eval by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197852@lists.php.net to get a copy of this message | ||
Note Submitter: microvalen at NOSPAM dot microvalen dot com
----
very simple example to includea html file:
<?php
$simple_var = 'This is a simple var';
eval("\$file=\"" . addslashes(implode("", file("test.html"))) .
"\";");
print $file;
?>
and the html:
<body>
$simple_var
</body>