Is config.php
a reserved name or why is the following not working for me?
I have the following files:
/test.php
:
echo "test<br/>";
require("php/session.php");
/php/session.php
:
echo "session<br/>";
require("connect.php");
/php/connect.php
:
echo "connect<br/>";
require("config.php");
/php/config.php
:
echo "config<br/>";
If I open /test.php
, it only prints test
, session
and connect
. But if I rename config.php
into something else and change the require in connect.php
, it works.