TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Efficiency (http://www.talkphp.com/general/2512-efficiency.html)

Gareth 03-23-2008 07:37 PM

Efficiency
 
Hello Everyone

I have a core functions file, which I include in every php file.

It may be a simple question, but, I was wondering, the functions aren't loaded or anything unless I directly call them, right? I'm not sure if the functions are preloaded or not...

Gareth

Alan @ CIT 03-23-2008 08:19 PM

Hi Gareth,

The entire PHP file will be loaded and evaluated. So although the functions won't be "run" until you call them, the entire file does get read and parsed by PHP.

Alan.

TlcAndres 03-23-2008 09:46 PM

I would break the files into pieces like member_functions.php/template_functions.php etc and have the pages call them


All times are GMT. The time now is 04:29 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0