Re: Directory structure problem

From: Date: Fri, 17 Aug 2001 15:45:35 +0000
Subject: Re: Directory structure problem
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1592@lists.php.net to get a copy of this message
Mika Tuupola wrote: > > On 17 Aug 2001, Stig Sæther Bakken wrote: > > > > Arent paths relative to path from which the script is running, > > > not relative to path where a file was included? > > > > Both :-) > > Hmmh. Guess I have something broken in here :) > > I have this directory structure under a directory which is > listed in include_path. > > Foo/ > Bar.php > Bar/ > fez.php > > Bar.php is: > > <?php > print "Foo/Bar.php included"; > require_once('Bar/fez.php'); ^^^^^^^^^^^ This should be: Foo/Bar/fez.php > ?> > > fez.php is: > > <?php > print "fez.php included"; > ?> > > Then I have a includetest.php which I try to access via > browser: > > <?php > require_once('Foo/Bar.php'); > ?> > > the result is > > Foo/Bar.php included > Fatal error: Failed opening required 'Bar/fez.php' > > (include_path='.:/www/work.taivas.com/PHPCVS/pear:/www/work.taivas.com/PHPCVS/php4/pear:/www/work.taivas.com/include') > in /export/www/work.taivas.com/include/Foo/Bar.php on line 5 > Tomas V.V.Cox

« previous php.pear.dev (#1592) next »