**Hello i currently have an admin system.**
The folder structure is the following.
/root/
/root/_admin/
/root/_admin/[login to view URL] (Admin Login)
/root/_admin/images/
/root/_admin/includes/
/root/_admin/includes/[login to view URL] (MySQL database connection)
/root/_admin/includes/[login to view URL] (Admin Header)
/root/_admin/includes/[login to view URL] (Admin Footer)
/root/_admin/includes/css/
/root/_admin/includes/jquery/
/root/_admin/modules/
/root/_admin/modules/Blog/
/root/_admin/modules/Blog/[login to view URL] (Views all blog posts)
/root/_admin/modules/Blog/[login to view URL] (adds blog posts)
/root/_admin/modules/Blog/[login to view URL] (edits blog posts)
/root/_admin/modules/Blog/[login to view URL] (deletes blog posts)
There are many more modules, but only require you to do the one as i will copy and paste into the rest.
- In the /root/_admin/[login to view URL]
- i use include './../_admin/includes/[login to view URL]';
- This works and includes the header to the file as expected.
- Then in /root/_admin/modules/Blog/[login to view URL]
- I have tried many different ways, using both absolute and relative paths to include the [login to view URL] - ever i get "failed to open stream" or the "images do not show"
**You need to come up with a solution to this problem! So that i can include my files and the images will show in what ever directory.**
**I have read about define and $root but unsure how i would implement this - the directorys must remain the same! and i do not want full absolute paths on every include or image. As the root may change, and i would like to edit 1 config file instead of editting 200 files etc.**
Thanks this is **URGENT** i cannot proceed without this fix!