note 76492 added to function.include

From: Date: Tue, 17 Jul 2007 21:09:00 +0000
Subject: note 76492 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-128676@lists.php.net to get a copy of this message
If you want to include a file that has no PHP in it (such as a template), it is more efficient to use file_get_contents(). Instead of: include "file.htm"; use: echo file_get_contents("file.htm"); In a rough millisecond test using gettimeofday(), it proved to be about twice as fast. ---- Server IP: 64.71.164.2 Probable Submitter: 198.104.64.238 (proxied: 198.104.117.37) ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/76492 Del: integrated -- https://master.php.net/note/delete/76492/integrated Del: useless -- https://master.php.net/note/delete/76492/useless Del: bad code -- https://master.php.net/note/delete/76492/bad+code Del: spam -- https://master.php.net/note/delete/76492/spam Del: non-english -- https://master.php.net/note/delete/76492/non-english Del: in docs -- https://master.php.net/note/delete/76492/in+docs Del: other reasons-- https://master.php.net/note/delete/76492 Reject -- https://master.php.net/note/reject/76492 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128676) next »