My files structure are :
/ (Root)
|-- includes
|-- |-- global.php
|-- |-- config.php
|-- index.php
In my index.php
file I wrote :
<?php
include "includes/global.php";
?>
and in includes/global.php
I wrote :
<?php
include "config.php";
?>
the global.php
in index.php
will be include whitout any problem but config.php
in global.php
will not be include !
I use XAMPP and in my old version of XAMPP (version 1.7.3) I don't have any problem but today I installed new version of XAMPP (version 1.8.1) and I have this problem !
I should use absolute path for including config.php
file in global.php
but I don't want to use absolute path, I want to include like before, how can I do this ?