PHP - include in subdir not working


This is what I have  

I need to go to   

the index.php is


The problem is that inside filehere.php

there is another includes like



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.