|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-25 05:14 UTC] mgf@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
ok... index.php folder1 file1 folder2 file2 That is the dir structure. file1 'include()'s file2 and file1 is included in index. When file1 is called directly from the browser it includes file2 (by using include "../folder2/file2"). However, when file1 is included in index.php the path to file to (located in file1) must be absolute, it cannot be relative (although when fil1 is called directly the path to file2 can be relative). Using any relative path does nto appear to work in this rare case.