note 124143 added to function.include-once
| From: | mho@php.net | Date: | Tue, 27 Aug 2019 07:31:41 +0000 |
| Subject: | note 124143 added to function.include-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-212022@lists.php.net to get a copy of this message | ||
once i wrote script to include multiple files at once from a given location:
function include_load($path)
{
foreach(glob($path . "/*.php") as $file)
include_once($file);
}
last week i modified my code and merged all include files into one single file. this results in five
times faster code. i have to mention, i am talking about +100 files to include where each file
includes single function and filename is equal to function-name.
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.195 (proxied: 188.100.204.209)
----
Manual Page -- http://php.net/manual/en/function.include-once.php
Edit -- https://master.php.net/note/edit/124143
Del: integrated -- https://master.php.net/note/delete/124143/integrated
Del: useless -- https://master.php.net/note/delete/124143/useless
Del: bad code -- https://master.php.net/note/delete/124143/bad+code
Del: spam -- https://master.php.net/note/delete/124143/spam
Del: non-english -- https://master.php.net/note/delete/124143/non-english
Del: in docs -- https://master.php.net/note/delete/124143/in+docs
Del: other reasons-- https://master.php.net/note/delete/124143
Reject -- https://master.php.net/note/reject/124143
Search -- https://master.php.net/manage/user-notes.php