Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17663 invoked by uid 1010); 4 May 2004 10:48:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17569 invoked from network); 4 May 2004 10:48:56 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 4 May 2004 10:48:56 -0000 Received: (qmail 7229 invoked from network); 4 May 2004 10:48:51 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 4 May 2004 10:48:51 -0000 Message-ID: <5.1.0.14.2.20040504134834.02a8c2a8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 04 May 2004 13:48:49 +0300 To: "Tumurbaatar S." ,internals@lists.php.net In-Reply-To: <20040504101926.19946.qmail@pb1.pair.com> References: <20040504052554.60192.qmail@pb1.pair.com> <1083649378.20045.3.camel@linux.local> <5.1.0.14.2.20040504105411.02706178@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] nested includes fails? From: andi@zend.com (Andi Gutmans) This is supposed to work and if it doesn't, then it's a bug. I'll try and find time to see if I can reproduce it. At 07:19 PM 5/4/2004 +0900, Tumurbaatar S. wrote: >A brief directory structure: > >"e:\...\myapp\" - this my web apps root and it contains several >subdirs: >"e:\...\myapp\members\" - a normal, web shared subdir >"e:\...\myapp\inc\" - an include subdir where are located all my >include files and this subdir is not web shared > >(though my Inetpub dir is located in C:, I use IIS's virtual app/dir >located in a different volume E:) > >The above "inc" subdir contains "common.php" which is used by >all other script files located anywhere under app root and subdirs. >So if a script is located in the "inc" subdir, then it may start with: > > > >If a script is in the root dir, then: > > > >and if it is in other subdirs (e.g. "members"): > > > >Finally, when my script located in 'members' needs some >include file from the "inc" dir, I include it in this manner: > > > >and I do not include "common.php" directly because >"some_include.php" starts with: > > > >I.e. a rule is: >a script does not include "common.php" if it includes >some other include file because that include file already >includes "common.php". > >That works fine untill I included 2 and more files: > > > > >where each of these include files includes "common.php". >In this case, "common.php" is included in a calling script >file 2 times, even "require_once()" is used. And this leads >to a trouble. >Currently, I use absolute pathes hoping that when my app >moves to Linux/Appache, relative pathes will work normally. > > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php