order of include on include()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 do I get errors on the includes?  Does php first pull in the includes of
test.php before pulling it into test2.php?  It seems to be looking for the
includes in test.php from where I am in test2.php and is failing.

Thanks!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux