Re: [PHP] order of include on include()

2006-06-14 Thread Richard Lynch
On Wed, June 14, 2006 3:23 pm, blackwater dev wrote: > If I have a file: > > /code/folder1/test.php > > and in that file, it has these includes: > > include_once("../../file1.php"); > include_once("../../file2.php"); > include_once("../../file3.php"); ../ is just gonna give you headaches, sooner o

RE: [PHP] order of include on include()

2006-06-14 Thread Jay Blanchard
[snip] Why do I get errors on the includes? [/snip] Includes are included in the order of their inclusion. If an include includes a child function (such as a class declaration) its parent must be included first. What error did you get? My bet is it is a path issue. -- PHP General Mailing List

[PHP] order of include on include()

2006-06-14 Thread blackwater dev
If I have a file: /code/folder1/test.php and in that file, it has these includes: include_once("../../file1.php"); include_once("../../file2.php"); include_once("../../file3.php"); I then have another file: /code/test2.php That file pulls in test.php. include_once("folder1/test.php"); Why