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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php