note 86527 added to function.include
| From: | Wade dot at osu1 dot php dot net | Date: | Thu, 23 Oct 2008 03:20:46 +0000 |
| Subject: | note 86527 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145630@lists.php.net to get a copy of this message | ||
If you're doing a lot of dynamic/computed includes (>100, say), then you may well want to
know this performance comparison: if the target file doesn't exist, then an @include() is *ten*
*times* *slower* than prefixing it with a file_exists() check. (This will be important if the file
will only occasionally exist - e.g. a dev environment has it, but a prod one doesn't.)
Wade.
----
Server IP: 117.104.160.194
Probable Submitter: 203.26.177.2
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/86527
Del: integrated -- https://master.php.net/note/delete/86527/integrated
Del: useless -- https://master.php.net/note/delete/86527/useless
Del: bad code -- https://master.php.net/note/delete/86527/bad+code
Del: spam -- https://master.php.net/note/delete/86527/spam
Del: non-english -- https://master.php.net/note/delete/86527/non-english
Del: in docs -- https://master.php.net/note/delete/86527/in+docs
Del: other reasons-- https://master.php.net/note/delete/86527
Reject -- https://master.php.net/note/reject/86527
Search -- https://master.php.net/manage/user-notes.php