Hi,
Fact:I have 3 files: /a.php, /dir1/b.php, /dir1/c.php. a.php does include("dir1/b.php") and b.php does include("c.php"). Retrieving http://server/a.php shows that c.php cannot be found. The include path is ".".
Comment: I understand this is the normal behavior, from what I read from the include documentation. I have an older apache/php setup (php 5.0.4) in which this works, the current directory does not change but the second include works just fine.
Question: What do I have to change in php.ini or elsewhere to make this code work, without changing the code or moving the files or editing the include path?
I read the include documentation and I searched on forums but could not find an answer. I stared at the two php.ini files, but I cannot see what could alter the include behaviour. Any suggestions?
Thanks!
Bookmarks