note 84437 deleted from function.eval by danbrown
| From: | danbrown@php.net | Date: | Mon, 14 Jul 2008 14:50:28 +0000 |
| Subject: | note 84437 deleted from function.eval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141489@lists.php.net to get a copy of this message | ||
Note Submitter: Konrad Fedorczyk
Reason: bad code
----
If you are using external file to get evaled content, and don't want to make this code
accessible via webserver. Save it in *.php file and put code this way:
// Can't access this file! <?php
if(!defined('PROPPER_ACCESS'))
exit();
$strVar = 'code for evaluation here!';
// ?>
Server will parse this file, and so visitor won't be able to see it's contents. Eval will
consider opening tags as a commentary, so it won't return any error.