whenever we include\require some file using php like
require ('links.php');
OR include ('links.php');
which one of the following two scenarios happen
EXAMPLE
lets say there is file file.php
with the follwing code
<?php
echo "my things";
?>
<br />
and we include this in
------
------
<?php
echo "about to include file";
include ('file.php')
?>
------
------
SCENARIO 1 : the included file's code is inserted in the parents\container files PHP Code and then the complete code is processed & HTML\result is generated....
meaning, first this code be first put like
------
------
<?php
echo "about to include file";
<?php
echo "my things";
?>
<br />
?>
------
------
then processed
SCENARIO 2 : the included file is first processed and the result is plugged in
meaning first the include file will be processed and the result will be obtained
mythings<br/>
and after that it is placed inside the parent\container\includer code and then that code will be processed neaning
------
------
<?php
echo "about to include file";
my things<br />
?>
------
------
and now it will be processed