note 37353 added to function.include

From: Date: Tue, 11 Nov 2003 22:52:47 +0000
Subject: note 37353 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-60266@lists.php.net to get a copy of this message
If the file you're including has no php markup, just use readfile() instead of include(). It's more efficient. Make sure you include the parenthesis though! For example, replace: <?php include "$somefilename"; ?> With: <?php readfile("$somefilename"); ?> ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37353 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37353&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37353&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60266) next »