This is what I have
site.com/user/filehere.php
I need to go to
site.com/user/messages/index.php
the index.php is
<?php
include_once("../filehere.php");
?>
The problem is that inside filehere.php
there is another includes like
filehere.php
<?php
include_once("../menu.php);
?>
and these includes are not reconized in the /messages dir even when it's all ok when I acess directly the included file
add
__DIR__
to your file path to represent the current php dir. For more refer to this post.