[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Ive jsut installed XP and straight away none of the include that specify FULL path to the file work .. Relative works fine. Everythign used to work like it is suposed to under win2k. I found that the only way to solv this is to add a FULl FULL path including the drive letter. (before i used to add just the path to the root of the webserver)... Any idea what might be causing this Besides win XP? Previous Comments: [2002-02-04 16:45:27] [EMAIL PROTECTED] I found solution %) php_value include_path /.;C:\var\www; Add in include_patch /. All working! Tested in php4.0.4rc1,4.0.6,4.1.1 [2002-01-30 12:55:33] [EMAIL PROTECTED] Hello, D:\127\Apache\Apache.exe -d d:\127\apache -k shutdown D:\127\Apache\Apache.exe -w -f D:\127\Apache\conf\httpd.conf -d D:\127\Apache\ Martin [2002-01-30 12:50:54] [EMAIL PROTECTED] Martin, Just checking that you're restarting Apache after each edit to PHP.ini... You don't have to restart in CGI mode for changes to happen, but SAPI needs it (since PHP is loaded into Apache's memory space). -Garth [2002-01-24 17:48:44] [EMAIL PROTECTED] We're getting hit by this too. Funny how because the local dev box is windows xp we can't use include_path for a unix main server! :(. Anyway, I tried the idea of using C:\apache/htdocs as the DocumentRoot, and Apache stopped reading .htaccess files completely, rendering the workaround useless. This is a major issue for us, I'm having to scream for a local unix dev box... [2002-01-17 11:11:47] [EMAIL PROTECTED] How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. 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/14797 -- Edit this bug report at http://bugs.php.net/?id=14797edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: I found solution %) php_value include_path /.;C:\var\www; Add in include_patch /. All working! Tested in php4.0.4rc1,4.0.6,4.1.1 Previous Comments: [2002-01-30 12:55:33] [EMAIL PROTECTED] Hello, D:\127\Apache\Apache.exe -d d:\127\apache -k shutdown D:\127\Apache\Apache.exe -w -f D:\127\Apache\conf\httpd.conf -d D:\127\Apache\ Martin [2002-01-30 12:50:54] [EMAIL PROTECTED] Martin, Just checking that you're restarting Apache after each edit to PHP.ini... You don't have to restart in CGI mode for changes to happen, but SAPI needs it (since PHP is loaded into Apache's memory space). -Garth [2002-01-24 17:48:44] [EMAIL PROTECTED] We're getting hit by this too. Funny how because the local dev box is windows xp we can't use include_path for a unix main server! :(. Anyway, I tried the idea of using C:\apache/htdocs as the DocumentRoot, and Apache stopped reading .htaccess files completely, rendering the workaround useless. This is a major issue for us, I'm having to scream for a local unix dev box... [2002-01-17 11:11:47] [EMAIL PROTECTED] How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. [2002-01-17 10:56:50] [EMAIL PROTECTED] OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... 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/14797 -- Edit this bug report at http://bugs.php.net/?id=14797edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Martin, Just checking that you're restarting Apache after each edit to PHP.ini... You don't have to restart in CGI mode for changes to happen, but SAPI needs it (since PHP is loaded into Apache's memory space). -Garth Previous Comments: [2002-01-24 17:48:44] [EMAIL PROTECTED] We're getting hit by this too. Funny how because the local dev box is windows xp we can't use include_path for a unix main server! :(. Anyway, I tried the idea of using C:\apache/htdocs as the DocumentRoot, and Apache stopped reading .htaccess files completely, rendering the workaround useless. This is a major issue for us, I'm having to scream for a local unix dev box... [2002-01-17 11:11:47] [EMAIL PROTECTED] How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. [2002-01-17 10:56:50] [EMAIL PROTECTED] OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... [2002-01-17 10:35:01] [EMAIL PROTECTED] Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. [2002-01-17 10:19:11] [EMAIL PROTECTED] I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Hello, D:\127\Apache\Apache.exe -d d:\127\apache -k shutdown D:\127\Apache\Apache.exe -w -f D:\127\Apache\conf\httpd.conf -d D:\127\Apache\ Martin Previous Comments: [2002-01-30 12:50:54] [EMAIL PROTECTED] Martin, Just checking that you're restarting Apache after each edit to PHP.ini... You don't have to restart in CGI mode for changes to happen, but SAPI needs it (since PHP is loaded into Apache's memory space). -Garth [2002-01-24 17:48:44] [EMAIL PROTECTED] We're getting hit by this too. Funny how because the local dev box is windows xp we can't use include_path for a unix main server! :(. Anyway, I tried the idea of using C:\apache/htdocs as the DocumentRoot, and Apache stopped reading .htaccess files completely, rendering the workaround useless. This is a major issue for us, I'm having to scream for a local unix dev box... [2002-01-17 11:11:47] [EMAIL PROTECTED] How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. [2002-01-17 10:56:50] [EMAIL PROTECTED] OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... [2002-01-17 10:35:01] [EMAIL PROTECTED] Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: We're getting hit by this too. Funny how because the local dev box is windows xp we can't use include_path for a unix main server! :(. Anyway, I tried the idea of using C:\apache/htdocs as the DocumentRoot, and Apache stopped reading .htaccess files completely, rendering the workaround useless. This is a major issue for us, I'm having to scream for a local unix dev box... Previous Comments: [2002-01-17 11:11:47] [EMAIL PROTECTED] How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. [2002-01-17 10:56:50] [EMAIL PROTECTED] OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... [2002-01-17 10:35:01] [EMAIL PROTECTED] Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. [2002-01-17 10:19:11] [EMAIL PROTECTED] I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. [2002-01-17 10:02:58] [EMAIL PROTECTED] Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin Previous Comments: [2002-01-15 23:25:31] [EMAIL PROTECTED] Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) [2002-01-15 23:21:44] [EMAIL PROTECTED] The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. [2002-01-10 07:36:40] [EMAIL PROTECTED] Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin [2002-01-10 06:26:27] [EMAIL PROTECTED] Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin [2002-01-09 21:17:13] [EMAIL PROTECTED] Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Updated by: mboeren Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. Previous Comments: [2002-01-17 10:02:58] [EMAIL PROTECTED] Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin [2002-01-15 23:25:31] [EMAIL PROTECTED] Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) [2002-01-15 23:21:44] [EMAIL PROTECTED] The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. [2002-01-10 07:36:40] [EMAIL PROTECTED] Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin [2002-01-10 06:26:27] [EMAIL PROTECTED] Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. Previous Comments: [2002-01-17 10:19:11] [EMAIL PROTECTED] I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. [2002-01-17 10:02:58] [EMAIL PROTECTED] Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin [2002-01-15 23:25:31] [EMAIL PROTECTED] Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) [2002-01-15 23:21:44] [EMAIL PROTECTED] The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. [2002-01-10 07:36:40] [EMAIL PROTECTED] Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... Previous Comments: [2002-01-17 10:35:01] [EMAIL PROTECTED] Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. [2002-01-17 10:19:11] [EMAIL PROTECTED] I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. [2002-01-17 10:02:58] [EMAIL PROTECTED] Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin [2002-01-15 23:25:31] [EMAIL PROTECTED] Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) [2002-01-15 23:21:44] [EMAIL PROTECTED] The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Updated by: mboeren Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: How about include(getenv(DRIVELETTER)./foo/test.php); and setting this environment variable locally (chances are it isn't set on the real webserver). Cheerio, Marc. Previous Comments: [2002-01-17 10:56:50] [EMAIL PROTECTED] OK, I think I has to use this workaround: if (strpos($SERVER_SOFTWARE, Win)) { // Windows - Is there a better way to detect this? $NB_INCLUDE_PATH_PREFIX = substr($DOCUMENT_ROOT, 0, 2); // The drive letter - Is there a better way to detect this? } else { // NOT Windows $NB_INCLUDE_PATH_PREFIX = ; } include ($NB_INCLUDE_PATH_PREFIX . /foo/test.php); But I'm not really happy... [2002-01-17 10:35:01] [EMAIL PROTECTED] Yes, but I do not want to edit anything. I want to upload the files and then it has to work. Perhaps you can use something like this: if (strpos($SERVER_SOFTWARE, Win)) { echo font color=\#FF\WINDOWS/font; } else { echo font color=\#008000\Uhh, good.../font; } But it's only a dirty workaround. [2002-01-17 10:19:11] [EMAIL PROTECTED] I use NT, but that doesn't really matter. What works for me is the following: If in httpd.conf, the DocumentRoot is d:/foo/htdocs, then in php.ini, I set include_path to d:/foo/htdocs as well. In every script that uses include, specify the relative path from d:/foo/htdocs (never from the current file!), _without_ a leading /, e.g. if your include file is d:/foo/htdocs/inc/bla.p, then use include(inc/bla.p); You could combine this with tricks like defining a constant ABS_INCL_PATH, setting this to d:/foo/htdocs and then using include(ABS_INCL_PATH./inc/bla.p); This way you can also create more constants, like THIS_PROJECT_ABS_INCL_PATH and GENERAL_TOOLBOX_ABS_INCL_PATH. Switching to a *nix environment is just a matter of redefining your constants. Hope this helps, Marc. [2002-01-17 10:02:58] [EMAIL PROTECTED] Hello, I tried: DocumentRoot d:/foo/htdocs DocumentRoot d:/foo/htdocs/ DocumentRoot d:\foo/htdocs DocumentRoot d:\foo/htdocs/ I used 'php.ini-dist' with include_path set to .. Nevertheless, I can't include files with an absolute path. Statements with a relative path work properly. Regards, Martin [2002-01-15 23:25:31] [EMAIL PROTECTED] Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. Previous Comments: [2002-01-10 07:36:40] [EMAIL PROTECTED] Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin [2002-01-10 06:26:27] [EMAIL PROTECTED] Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin [2002-01-09 21:17:13] [EMAIL PROTECTED] Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth [2002-01-07 14:07:01] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-06 06:30:33] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Oh yeah, the other reason I think it's a bug is because the behaviour is not consistant between the CGI version and the SAPI version of the same build. If it has to be inconsistant it should be documented. (proably a blurb on top of include_path in php.ini would be the best place for it, since people will find that include_path causes the problem when their doc_root is set wrong) Previous Comments: [2002-01-15 23:21:44] [EMAIL PROTECTED] The Solution: - You need to add the drive letter as follows DocumentRoot D:\apache/htdocs/ ^ | emphasis on the \ then relative include_path statements should work. I still think this is a bug, because apache runs fine with DocumentRoot /apache/htdocs/, it's only PHP that has problems when include_path is set. [2002-01-10 07:36:40] [EMAIL PROTECTED] Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin [2002-01-10 06:26:27] [EMAIL PROTECTED] Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin [2002-01-09 21:17:13] [EMAIL PROTECTED] Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth [2002-01-07 14:07:01] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin Previous Comments: [2002-01-09 21:17:13] [EMAIL PROTECTED] Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth [2002-01-07 14:07:01] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-06 06:30:33] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-02 08:58:27] [EMAIL PROTECTED] With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin [2002-01-02 08:30:47] [EMAIL PROTECTED] Hello, I can't run PHP Version 4.1.0 under Windows 95/98 4.10, there are massive problems when I try to include a file: Server API CGI -- - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion Server API Apache - - It is not possible to set the include-path in php.ini to an other value than . If I do, there will be everytime the same error: Failed opening 'foo/index.php' for inclusion (include_path='.;/foo') in Unknown on line 0 - If I set the include-path in php.ini to and in a script with ini_set(include_path, $new_inc_path) to the desired path, then php shows the same behaviour like Server API CGI - only relative paths work. I think this could be the bug #11612 or #14563, bit I don't use Win2k, I'm using Win 98 SE.
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Hello, when I add the drive letter to the include statement (e.g. 'd:/foo/test.php'), then the inclusion works properly. But then all scripts only run on a window machine or we have to change every script before uploading it to our real webserver, respectively. Regards, Martin Previous Comments: [2002-01-10 06:26:27] [EMAIL PROTECTED] Hello, whenever I add the drive letter (d:) to the DocumentRoot of the VirtualHost, there is the same error as with PHP running as Server API CGI: - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion However, it is now possible to start PHP with include-path in php.ini set to a non-empty value. But for me, it's very important to use include with an absolute path. I tried to put the file test.php into the folder foo on drive c:, but this doesn't work properly too. I thought PHP is looking for the file on the wrong disk, but this seems to be not the underlying problem. Regards, Martin [2002-01-09 21:17:13] [EMAIL PROTECTED] Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth [2002-01-07 14:07:01] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-06 06:30:33] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-02 08:58:27] [EMAIL PROTECTED] With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin 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=14797 Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: Martin, Did my suggestion work for you? Where you missing the drive letter? -Garth Previous Comments: [2002-01-07 14:07:01] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-06 06:30:33] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-02 08:58:27] [EMAIL PROTECTED] With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin [2002-01-02 08:30:47] [EMAIL PROTECTED] Hello, I can't run PHP Version 4.1.0 under Windows 95/98 4.10, there are massive problems when I try to include a file: Server API CGI -- - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion Server API Apache - - It is not possible to set the include-path in php.ini to an other value than . If I do, there will be everytime the same error: Failed opening 'foo/index.php' for inclusion (include_path='.;/foo') in Unknown on line 0 - If I set the include-path in php.ini to and in a script with ini_set(include_path, $new_inc_path) to the desired path, then php shows the same behaviour like Server API CGI - only relative paths work. I think this could be the bug #11612 or #14563, bit I don't use Win2k, I'm using Win 98 SE. Martin Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: From: Garth Dahlstrom [EMAIL PROTECTED] Subject: Re: PHP Bug #14797 == #14563 Date: Mon, 07 Jan 2002 2:36:45 EDT I did some work trying to figure this out using FoxServ off of sf.net... I can recreate the bug when I don't prefix my DocumentRoot with the drive letter... DocumentRoot C:\apache/htdocs # no error DocumentRoot /apache/htdocs# error I find it odd that they both work on my machine provided I don't provide an include_path and the syntax of the include_path can lack the drive letter and work just fine. (i.e. include_path=.;/apache/includes is ok as long as the Docroot in httpd.conf has a C:\ in it) Wondering if you can verify this result... It may be just a matter of PHP not using C:\ as a default drive after 4.04 or something... -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine Previous Comments: [2002-01-06 06:30:33] [EMAIL PROTECTED] From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine [2002-01-02 08:58:27] [EMAIL PROTECTED] With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin [2002-01-02 08:30:47] [EMAIL PROTECTED] Hello, I can't run PHP Version 4.1.0 under Windows 95/98 4.10, there are massive problems when I try to include a file: Server API CGI -- - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion Server API Apache - - It is not possible to set the include-path in php.ini to an other value than . If I do, there will be everytime the same error: Failed opening 'foo/index.php' for inclusion (include_path='.;/foo') in Unknown on line 0 - If I set the include-path in php.ini to and in a script with ini_set(include_path, $new_inc_path) to the desired path, then php shows the same behaviour like Server API CGI - only relative paths work. I think this could be the bug #11612 or #14563, bit I don't use Win2k, I'm using Win 98 SE. Martin Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: From: Garth Dahlstrom [EMAIL PROTECTED] Subject: PHP Bug #14797 == #14563 Date: Sat, 05 Jan 2002 13:15:45 EDT Martin, Indeed you have the same bug I have, I don't have a Win98 system so I could not comment on whether or not it was for all of Win32 when I opened 14563. I downgraded my set-up to a copy of PHP 4.04, and found your statement regarding versions before 4.05RC1 to be true also... setting my include_path = .;/apache/includes fails with the same error, however setting include_path to ;.;/apache/includes works properly. Wondering if this workaround would work after 4.04 on Win2K, I upgraded my PHP version back up maintaining the same PHP.ini from 4.04... The workaround doesn't work on 4.06, 4.08, 4.1.0, or 4.1.1. They have closed my bugs as being bogus and I can't post into your bug to describe these findings, so if you could post this message into Bug #14797, maybe it would be helpful in keeping you bug alive. I am thinking of building a mini-distribution of Apache+PHP (4.04 + 4.06 + 4.1.1) to see if I can help more folks reproduce it. Regards, -GED Northern.CA ===-- http://www.northern.ca Canada's Search Engine Previous Comments: [2002-01-02 08:58:27] [EMAIL PROTECTED] With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin [2002-01-02 08:30:47] [EMAIL PROTECTED] Hello, I can't run PHP Version 4.1.0 under Windows 95/98 4.10, there are massive problems when I try to include a file: Server API CGI -- - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion Server API Apache - - It is not possible to set the include-path in php.ini to an other value than . If I do, there will be everytime the same error: Failed opening 'foo/index.php' for inclusion (include_path='.;/foo') in Unknown on line 0 - If I set the include-path in php.ini to and in a script with ini_set(include_path, $new_inc_path) to the desired path, then php shows the same behaviour like Server API CGI - only relative paths work. I think this could be the bug #11612 or #14563, bit I don't use Win2k, I'm using Win 98 SE. Martin Edit this bug report at http://bugs.php.net/?id=14797edit=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]
[PHP-DEV] Bug #14797 Updated: include (_path) in Apache SAPI and CGI on Win98SE does not work
ID: 14797 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment: With PHP Version 4.0.5RC1 an inlude-path set to ;.;./; it works with SAPI, but with 4.0.6 and newer it's the same like 4.1.0 Martin Previous Comments: [2002-01-02 08:30:47] [EMAIL PROTECTED] Hello, I can't run PHP Version 4.1.0 under Windows 95/98 4.10, there are massive problems when I try to include a file: Server API CGI -- - It's possible to set the include-path in php.ini. - Scripts without any include statement work well. - include statements with a relative path work. - include statements with an absolute path do not work, there is the following error: Failed opening '/foo/test.php' for inclusion Server API Apache - - It is not possible to set the include-path in php.ini to an other value than . If I do, there will be everytime the same error: Failed opening 'foo/index.php' for inclusion (include_path='.;/foo') in Unknown on line 0 - If I set the include-path in php.ini to and in a script with ini_set(include_path, $new_inc_path) to the desired path, then php shows the same behaviour like Server API CGI - only relative paths work. I think this could be the bug #11612 or #14563, bit I don't use Win2k, I'm using Win 98 SE. Martin Edit this bug report at http://bugs.php.net/?id=14797edit=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]