Hi all I've a problem with include function in php:
I have 4 file:
dir1/file1.php
dir4/dir2/file2.php
dir3/file3.php
dir3/file4.php
In file1.php I have:
include_once('../dir3/file3.php');
In file3.php I have:
required('../dir3/file4.php');
In file2.php I want write:
include_once('../../dir3/file3.php');
but the required function in file3 doesn't work because the path of file4 must be
../../dir3/file4.php
and not
../dir3/file4.php
How can I fix it?