note 76480 deleted from function.require by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 17:45:23 +0000 |
| Subject: | note 76480 deleted from function.require by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207906@lists.php.net to get a copy of this message | ||
Note Submitter: moazzamk at gmail dot com
----
require and include read the included files even if they are not executed in the code. You can use
eval() to avoid this.
eval('require filename;');
I don't know if it's faster to have the files included the regular way or the eval way
though (in other words, I haven't tested their efficiency). It will be great if someone can
test which is better.