I am developing an application where I have a requirement that I have to include multiple files, as follows:
File1.php will include File2.php
File2.php will include File3.php
File3.php will include File4.php
Now, what will be the best and optimized way of doing these. I tried with include() but I think its slowing down my server as my server load graphs goes approx 3-5 times higher than normal server load.
These all files are heave means arround 50 KB
for each file. So can anyone please suggest me what will be the best option to include these files so that it will not affect the speed of the site,
Which will be best?
require()
require_once()
include()
include_once()
OR if anyone has some other option then please tell me,
Thanks