PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
robster
Forum Contributor
Posts: 360 Joined: Wed Jul 16, 2003 8:28 am
Location: Sunshine Coast, Australia
Post
by robster » Sat Apr 10, 2004 2:49 am
Hi
This is interesting.
I have three files. file1.php is at the root level, file2.php is included inside file1.php and file3.php needs to be included inside file2.php.
Is this possible because it appears that the last include (the include in an include) is not working.
Thanks a TONNE for your help
Rob
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Sat Apr 10, 2004 5:31 am
The only problem you could run into is the one with relative paths..
p1 include ../foo/p2
p2 include ../../../bar/p3
Does p2 include relative to p1 or relative to p2?
The answer is at
http://be2.php.net/manual/en/function.include.php
robster
Forum Contributor
Posts: 360 Joined: Wed Jul 16, 2003 8:28 am
Location: Sunshine Coast, Australia
Post
by robster » Sat Apr 10, 2004 9:38 am
Actually I'm so sorry, it was a simple spelling mistake in my filename!!!
But it was very interesting non the less to see about that path thing! Thanks so much you two
Rob