Hi all,
I've encounted some trivial problems with include statements although I couldn't find a fix 🙁 So here's the situation, i have files like this:
someconf.ini
somefiles.php
libs/lib1.php
libs/lib2.php
In lib2.php I have this line:
require_once("../someconf.ini");
When I execute lib2.php on its own, there are no problem. But if I include libs/php2.php in somefiles.php, it tries to find someconf.ini one directory up of somefiles.php. I tried different approaches, but none worked... Any suggestions on this?
Regards,
gamehack