I have a home.php file which references fileA using php require command which is in the same folder i.e. localhost. the code is:
<?php // /localhost/home.php
require ('/fileA.php');
?>
fileA references another file in its code fileB.
so far its workin properly
when i access fileC.php
i reference fileA using
<?php // /localhost/A/B/fileC.php
require ('../../fileA.php');
?>
the code is able to acquire fileA but only works properly when fileB is in the same folder as fileC else produces a 404 error.I am not able to understand why is this happening since fileB is called by fileA.
thanks.