[PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. -- Rob Rob Adams [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From the manual on 'include': Files for including are first

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Rob Adams wrote: One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem?

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
The scenario I gave is very simplified. I'm actually trying to get tikiwiki working on a server, and the reason it won't run the install is because of this problem I've mentioned. It works as expected on my development server (WinXP), but on my production (FreeBSD) it fails. I don't have a

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jason Barnett
Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This still

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My guess is the file *is* in the include path, but the current working directory when require_once() executes is not what the OP thinks it is... I was hoping this was the case, but just checked it with: echo `pwd`; and it

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jason Barnett wrote: Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the