order of include on include()

From: Date: Wed, 14 Jun 2006 20:23:25 +0000
Subject: order of include on include()
Groups: php.general 
Request: Send a blank email to php-general+get-238004@lists.php.net to get a copy of this message
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!

« previous php.general (#238004) next »