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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -