note 99086 deleted from function.eval by danbrown
| From: | danbrown@php.net | Date: | Tue, 27 Jul 2010 14:34:14 +0000 |
| Subject: | note 99086 deleted from function.eval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171173@lists.php.net to get a copy of this message | ||
Note Submitter: gleb at memberwing dot com
Reason: useless
----
Here's how to eval the whole PHP file instead of just a string:
<?php
// eval()-ing index.php file...
eval (preg_replace ('@^\<\?php@i', '',
file_get_contents('index.php')));
?>