ID: 11612 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Documentation problem Operating System: Win2k Server PHP Version: 4.0.5 New Comment:
You´re right. It works now! Thank You Previous Comments: ------------------------------------------------------------------------ [2002-01-13 16:26:13] [EMAIL PROTECTED] 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' ? ------------------------------------------------------------------------ [2002-01-13 15:49:48] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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" ------------------------------------------------------------------------ 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]