I am trying to figure out a way to provide includes that
will work on any directory structure, that will also allow
the path to be defined in one location.
The problem I have been having, is when trying to use it in different ways.
Server paths is always not a recommended way of doing things, but so far its
the only way all options have worked, yet still not viable because then it cant be
defined from just one file.
If trying to include my shoutbox from my server Root index.php then all the
php include paths from the shoutbox files need to be changed to reflect this and work,
which will result in it not working if you go directly to the shoutbox folder.
and the problems continue from there...
My question would be how can you create a way for files inside certain folders that
will always stay there.... work correctly if including to another file in different level directory, and/or
if using through an iframe, and/or if directly accessing?