include a file from a file in a subdirectory
Posted: Tue Jan 29, 2008 11:28 am
Hi,
I have /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. I understand this is the normal behavior, from what I read from the include documentation.
My question is this: 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 maybe there is an extension/module that alters this behavior? I read the include documentation and I searched on a few forums but could not find an answer.
Thanks!
I have /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. I understand this is the normal behavior, from what I read from the include documentation.
My question is this: 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 maybe there is an extension/module that alters this behavior? I read the include documentation and I searched on a few forums but could not find an answer.
Thanks!