I hava several php files in different folders.
I tried to use relative paths. But when I call a script from another
folder that has another depth, it cannot find the files that are
embedded via require once within the included file.
sample:
fileA.php (in the root dir!)
-----
require_once 'common_inc.php';
....
-----
classes/fileB.php (in /classes)
-----
require_once '../fileA.php';
....
-----
No it trys to find the 'common_lib in the /classes folder insted of the
root dir.
Well, I tried now to specify absolute paths like
"http://127.0.0.1:8080/projectname/common_inc.php"
But it cannot be included then. Thats the browser string of the file.
Why doesn't it work?
How can I solve this problem?
It doesn't matter for me if relative or absolute paths specifications
are used. It should only work :)
thanks in advance,
Lars