Yes, mine works too. After you reply I tested it without abs paths and that worked. May be there was some error in my include scripts because after my 1st post I did many changes in them. Though I wonder what was wrong in my prior code. Thank you all!
"Jevon Wright" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I tried this and it didn't fail... > > Jevon > > ----- Original Message ----- > From: "Tumurbaatar S." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 05, 2004 1:32 PM > Subject: Re: [PHP-DEV] nested includes fails? > > > > Hi, Jevon, > > Mine is not so complex: > > > > //all files in 'inc' include 'common.php' > > \inc\a.php > > <?php > > require_once("common.php"); > > class A { } > > ?> > > \inc\b.php > > <?php > > require_once("common.php"); > > class B {} > > ?> > > > > //common.php does not include anything > > \inc\common.php > > <?php > > class C { } > > ?> > > > > //this works. Main scripts include 'common.php' indirectly > > \member\member.php > > <?php > > require_once("../inc/a.php"); > > ?> > > > > > > //this fails:redeclaration of class C > > \member\member3.php > > <?php > > require_once("../inc/a.php"); > > require_once("../inc/b.php"); > > ?> > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php