Bug #11612 Updated: php_include completely non-functional

From: Date: Sun, 13 Jan 2002 21:26:13 +0000
Subject: Bug #11612 Updated: php_include completely non-functional
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76918@lists.php.net to get a copy of this message
ID: 11612 Comment by: msopacua@idg.nl Old Reported By: uhl@cis.ohio-state.edu Reported By: msopacua@idg.nl Status: Feedback Bug Type: Documentation problem Operating System: Win2k Server PHP Version: 4.0.5 New Comment: Please read: The document root in -->> Apache's httpd.conf <<--. Look at your warning: 'Warning: Failed opening '/apache/htdocs/index.php' Why doesn't that read: 'Warning: Failed opening 'c:\apache\htdocs\index.php' ? Previous Comments: ------------------------------------------------------------------------ [2002-01-13 15:49:48] tobi@xonline.de Sorry, problem is still alive: Now I use the following: ; Windows: "\path1;\path2" include_path = ".;c:\apache\htdocs\eucarkunden" ; The root of the PHP pages, used only if nonempty. doc_root = c:\apache\htdocs Problem is the same 'Warning: Failed opening '/apache/htdocs/index.php' for inclusion (include_path='.;c:\apache\htdocs\eucarkunden') in Unknown on line 0' ------------------------------------------------------------------------ [2002-01-13 15:23:02] msopacua@idg.nl The warning should probably go into: http://www.php.net/manual/en/install.windows.php The root of this problem, is not the include_path, but the DocumentRoot Apache directive - or any document root setting on a windows webserver. While any path syntax works for Apache, only windows native works for php. This goes for ISAPI as well, under other webservers, like Sambar. Don't have IIS, so I haven't tested it there. Further more "\" is not always the root of the current disk. I suppose it is, but current probably is current for c:\winnt\system32\php4_ts.dll instead of the webserver executable. Haven't fully debugged that. In any case, specifying document roots in the windows native path syntax, prefixed with the drive letter, fixes all of the above. ------------------------------------------------------------------------ [2002-01-13 15:02:35] yohgaki@php.net Make this to doc problem. Current http://www.php.net/manual/en/configuration.php uses full path. What should be fixed? ------------------------------------------------------------------------ [2002-01-13 13:34:44] msopacua@idg.nl Should be reclassified as documentation problem. Use: 1) a full reference including the disk, i.e.: .;c:\include\path 2) For virtual hosts, the document root in Apache httpd.conf should follow the same principles, i.e.: DocumentRoot "c:\www\demoxpress.com\html" ------------------------------------------------------------------------ [2002-01-13 13:09:55] tobi@xonline.de Still have the same problem: Some configuartion: Win2000 pro, apache 1.3.14 and PHP4.1.1 if the include_path is empty.. no problem if I put anything in eg 'include_path = ".;\apache\htdocs\" error message is like this: 'Warning: Failed opening '/apache/htdocs/phpinfo.php' for inclusion (include_path='.') in Unknown on line 0' Everything works fine, if there´s nothing in the include_path. Do you have a solution in the meantime? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11612 Edit this bug report at http://bugs.php.net/?id=11612&edit=1

« previous php.dev (#76918) next »