Hello comrades! I understand that the question is repeated, but it is still relevant!
The official PHP resource does not say in the require function description that it includes the specified files BEFORE the handler starts working, on the contrary, there is no significant difference between the require and include .
Earlier, I remember how it was said that require includes files BEFORE the handler starts working without paying attention to the position of this function and it will be executed according to the condition or not. It was used accordingly to include the necessary files, but was faster include did its job before the processor started working.
And include is good because it can dynamically connect files, for example in a loop, and in the absence of a file it will not stop the script, but only cause a warning.
Actually the question is: I am a serious enough PHP programmer, I need help on these functions, I need to speed up my scripts, tell me about these functions, how do they work in PHP5?
Here is one of the experiments:
<?php echo (function_exists('_tools_configurations')) ? 'ok': 'no'; require('./system/tools/_/_tools_configurations/_tools_configurations.php'); ?>