I want to include a file which includes a file.. confusing, i'll try to explain a bit more.
I'll show the folder structure first:
- /main/
- /main/head.php
- /main/headertext.txt
- /main/index.php
- /main/chat/
- /main/chat/headertext.txt
- /main/chat/index.php
I include the file /main/head.php into the file /main/chat/index.php.
Now, in /main/head.php i want to include /main/chat/headertext.txt
In /main/index.php i also include /main/head.php, there i want to include /main/headertext.txt
I don't know if anyone understands me, but i want to include a text file that is in the folder of the current index.php, whatever folder i am in..
Is that possible?