|
Posted by jj on 04/05/06 16:21
Hello everyone
I have a header.php file that i keep in an 'includes' directory which i
access via 'include' from various files within my application. The problem
for me is that this file is accessed from different parts in the directory
structure of my app.
If one file accesses it from a certain directory it works, but then if
another file acceses it from yet another directory then it cant find it
because the path is different !
For example:
the follwoing works for one of my files
include(/includes/include.php');
but for another one i have to use this because its in another part of the
directory structure
include('events/includes/include.php');
so as you can see depending on which file accesses the include file the path
works for one but not for another. I was wondering how i could get around
this and keep the path consistent so that all my files can access this file
Thanks a lot.
Navigation:
[Reply to this message]
|