Re: include paths

From: Date: Fri, 18 May 2001 02:05:20 +0000
Subject: Re: include paths
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7703@lists.php.net to get a copy of this message
On Thu, 17 May 2001 11:30:59 -0500, you wrote: On second thought (see my previous note), how exactly are you typing your include() in code? I realized after posting previously, that include() automatically traverses the path(s) set by the include_path variable, so as long as that is set up properly, simply using: include('someincludefile'); works like it should (at least it does for me). If that isn't the issue, then I can only suspect that there is a windows2000 issue involved. I'm using windows 98, so I can't check that. Alan >Greetings, > >I'm running Apache with the PHP mod under Windows 2000, but I seem to have >a recurring problem with includes. Every time I try to view a page with an >include() statement, it returns an error of the following sort: > >Warning: Failed opening 'menutop.php' for inclusion (include_path='') in d: >\foxserv\www\home\en\index.php on line 5 > >I've tried placing the desired PHP file (menutop.php) in the same directory >as the index.php, and it returns just fine, but I can't seem to get it to >recognize any sort of path, as indicated by the error message. As far as I >can tell, my syntax is correct in my php.ini: > >include_path = "d:\foxserv\www\include;." > >But I keep running into the same problem. I am running a dual boot on >separate drive partitions, one Windows NT 4.0, one Windows 2000 Server, >perhaps that has something to do with it? If anyone has any insight into >the problem it would be much appreciated. > >-Matthew Robey >Maxon Corp.

« previous php.windows (#7703) next »