auto prepend file versus require() or require_once()
Posted: Thu Dec 16, 2010 7:43 am
I'm using require_once() method, and I need to load a lot of files, but depending by case, I load certain php file, not all at once. I'm trying to speed up my application, and I'm wondering if I can put all of them into php.ini file as auto prepend files.
Question : Does auto prepend file do the same as requre() does?I'm speaking about performances. Precisely, if I put
auto prepend file /Files/file1.php
auto prepend file /Files/file2.php
auto prepend file /Files/file3.php
auto prepend file /Files/file4.php
is it same as (time to get those files, or auto prepend files add them on start of webserver)
require /Files/file1.php
require /Files/file2.php
require /Files/file3.php
require /Files/file4.php
Thanks!!!
Question : Does auto prepend file do the same as requre() does?I'm speaking about performances. Precisely, if I put
auto prepend file /Files/file1.php
auto prepend file /Files/file2.php
auto prepend file /Files/file3.php
auto prepend file /Files/file4.php
is it same as (time to get those files, or auto prepend files add them on start of webserver)
require /Files/file1.php
require /Files/file2.php
require /Files/file3.php
require /Files/file4.php
Thanks!!!