# PHP - include in subdir not working

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



The problem is that inside filehere.php

there is another includes like

filehere.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.