Hello,
Does anyone know the exact functionality of the 'include' statement. What I am wondering is, when the PHP script is executed will ALL include statements fire, or can includes be conditional.
An example to show what I mean:
if($test==true){
include(testfile.php);
//use stuff within that included file
}
Does that include get executed ONLY if the condition is met, or is the PHP execution going to do all includes at runtime, regardless of conditions. So instead of the above, would PHP do the following by default.
include(testfile.php); //PHP simply does ALL includes regardless of location in code
if($test==true){
//Use stuff within that included file
}