include paths

From: Date: Fri, 18 May 2001 12:10:41 +0000
Subject: include paths
Groups: php.windows 
Request: Send a blank email to php-windows+get-7718@lists.php.net to get a copy of this message
Well, thanks for all the input, I tried several different fixes, and combinations of fixes. In the end, giving the complete path in my include () statement did the trick. No amount of tinkering with the include_path variable would get the server to look in the right place. So my php now reads: include ("d:\foxserv\www\include\db_maxon.php"); Thanks again, -Matthew Robey Maxon Corp. >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 (#7718) next »