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 or later.
Just
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
[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
3 matches
Mail list logo