Re: Directory structure problem

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Directory structure problem
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1588@lists.php.net to get a copy of this message
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'); ?> 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 -- Mika Tuupola http://www.appelsiini.net/~tuupola/

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