FINALLY found the method myself, after freaking hrs of digging the net to no avail and mainly from trial and error. Can't believe it was so simple, well I guess I can, after all, all it is is to move up a directory. If there's an easier way, please post
chdir("..");
$fh = fopen(getcwd() . '/misc/db.log', "r+");
blah blah blah
This drove me nuts :eek: now I can go to bed soon!