[thelist] weird include() problem in PHP

Dave Stevens stem at stemofficial.co.uk
Sat Mar 30 16:39:01 CST 2002


please ignore that last post, read a comment on PHP.net, its cause I am
trying to include a file with in an included file -

"if file a includes file b, and file b wants to include file c, then
include() does not provide any way to include c with a path relative to
b,it can only specificy paths relative to a. This is a major obstacle
for creating larger projects directly in PHP."

still doesn't explain why it worked in one and not the other, but its
all sorted now by specifying the path relative from index.php's location.

Sorry to waste time/bandwidth!

Dave Stevens






More information about the thelist mailing list