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';

see: http://php.net/include_once


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -