I have file a.php and data folder in one folder. In data folder, I create two files: b.php and c.php.
a.php
<?php
   $a = 1;
   include('data/b.php');
?>
b.php
<?php
 include('data/c.php');
?>
c.php
<?php
 echo $a;
?>
When I run file a.php, result is 1. But I change content of file b.php to include('c.php');
the result of file a.php is also 1. 
I think it should show an error because a.php and c.php are not in the same folder.
 
     
    