I'm having trouble with nested includes. While I have seen there are a number if similar issues, they don't seem to help.
Generally I don't have problems with includes, but recently I have been trying something new and I cannot get the nested includes to work.
One solution: php nested include behavior
assuming that the filesystem looks like this..
/www include/header.php class/Login.class.php class/Connection.class.php resources/login/index_alt.php resources/login/index_auth.php index.php
this means that
index.php: include(__DIR__ . '/include/header.php'); header.php: include(__DIR__ . '/../resources/login/index_alt.php'); index_alt.php: include(__DIR__ . '/index_auth.php');