Re: include hassle

From: Date: Fri, 02 Aug 2002 17:33:32 +0000
Subject: Re: include hassle
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-110849@lists.php.net to get a copy of this message
On Friday 02 August 2002 10:41 am, lallous wrote: > I mean this: > > i have this tree: > > ./libs/*.php > ./user/file1.php > > now i'm in ./user/ directory > i run file1.php > it includes ../libs/lib1.php which in turn will include helper.php > (./users/helper.php) <-- will fail! > > how can i programmatically set the include path? > > Elias > - You can use an absolute path. - You can also specified all the includes path that will be find by php automatically in your php.ini. You might want to specify your /libs directory there, if you're including a lot of files from that directory. Either or both should work Rdb

« previous php.general (#110849) next »