ID: 14797 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Scripting Engine problem Operating System: Windows 98 SE PHP Version: 4.1.0 New Comment:
I have discovered the same errors and found one *somewhat* solution... If the file you are trying to include is on the same server (e.g. not "http://othersite.com/include.inc"), then you can use the following: chdir("directory"); This will switch to another directory. To go up a level, use: chdir(".."); I don't know if this works on a Unix box or not. Use this command to switch to the directory of the .inc files, and then you can initiate the include(); command. Hope this helps with your include problem... ~ Patrick ~ Previous Comments: ------------------------------------------------------------------------ [2002-03-19 14:29:45] [EMAIL PROTECTED] I've always had problems with apache sapi under win32 with the include path. Finally discovered this works: php_value include_path "/.;C:\whatever" Why? I have no idea. Definite BUG. ------------------------------------------------------------------------ [2002-03-13 20:50:45] [EMAIL PROTECTED] This is fixed in CVS. Fix will be in PHP 4.2.0. ------------------------------------------------------------------------ [2002-02-05 19:56:20] [EMAIL PROTECTED] 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? ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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=14797&edit=1