I've been using includes in a couple of different files (such as index.php in one of my theme directories) and it has worked fine as long as the file I'm trying to include is in the same directory as the file WITH the include.
In other words, I have this in my index.php file:
if(date('j') == '1') {
include('1.php');
}
This works fine, assuming 1.php is in the same directory as index.php. What I need is to be able to do the same thing with 1.php residing in a subdirectory, such as:
if(date('j') == '1') {
include('/somedirectory/1.php');
}
But that never seems to work. It renders the whole page fine (since it's just an include) but nothing shows up where the stuff from 1.php should be.
Anybody know the secret to this?