performance - Php - When processes are executed -
i've this:
class { public function __construct() include 'file.php'; } bla bla... bla bla... bla bla... bla bla... bla bla... bla bla... bla bla... } new a();
the question is: file.php big data.file , wanna know if it's loaded when php reads construct function or when construct function called "new a()";
it' same others processes?
it's same javascript?
thanks lot
new a()
when include evaluated.
it happen every instance of a
create.
if wanted ensure included 1 time, , not every time a
object created, can change include_once 'file.php';
Comments
Post a Comment