I got a problem about including a included file in PHP.
Project
- functions(folder) has a.php
- xml(folder) has b.xml
- index.php
This is my project structure(sorry about that, I can't post images). I try to use "index.php" to include "a.php" while "a.php" is using "b.xml"
this is what i did on XAMPP and it works perfectly:
in index.php I wrote: include 'functions/a.php';
in a.php I wrote: $xml->load('xml/b.xml');
However if I copy these to my Uni's apache server, it can't open this b.xml. This is not permission because when i change to absolute path it works...
Thank you guys in advance:-)