note 76492 deleted from function.include by felipe

From: Date: Mon, 10 Dec 2007 18:26:54 +0000
Subject: note 76492 deleted from function.include by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133285@lists.php.net to get a copy of this message
Note Submitter: none ---- 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.

« previous php.notes (#133285) next »