note 76480 added to function.require

From: Date: Tue, 17 Jul 2007 15:51:42 +0000
Subject: note 76480 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-128661@lists.php.net to get a copy of this message
require and include read the included files even if they are not executed in the code. You can use eval() to avoid this. eval('require filename;'); I don't know if it's faster to have the files included the regular way or the eval way though (in other words, I haven't tested their efficiency). It will be great if someone can test which is better. ---- Server IP: 208.69.120.35 Probable Submitter: 204.141.14.107 ---- Manual Page -- http://www.php.net/manual/en/function.require.php Edit -- https://master.php.net/note/edit/76480 Del: integrated -- https://master.php.net/note/delete/76480/integrated Del: useless -- https://master.php.net/note/delete/76480/useless Del: bad code -- https://master.php.net/note/delete/76480/bad+code Del: spam -- https://master.php.net/note/delete/76480/spam Del: non-english -- https://master.php.net/note/delete/76480/non-english Del: in docs -- https://master.php.net/note/delete/76480/in+docs Del: other reasons-- https://master.php.net/note/delete/76480 Reject -- https://master.php.net/note/reject/76480 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128661) next »