ID: 21649 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment:
Hi I just try your solution.It doesn't work. This is my path from <?php phpinfo();?> include_path c:\php4\pear;c:\ c:\php4\pear;c:\ Could You SEE IT!!!!!!!!!!!!! This is a code I'm tring to run <?php ini_set('include_path', 'c:\php4\pear;c:\\'); echo ini_get('include_path'), '<br />'; if(!$fp = fopen("authenticate.txt","r",1)) { die("<P>could not open password file"); } //$fp = fopen('C:\php4\pear\authenticate.txt','r',1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); This is an error I'm getting c:\php4\pear;c:\ Warning: fopen(authenticate.txt) [function.fopen]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\authfile.php on line 5 could not open password file Best Regards W.J.Lipinski Previous Comments: ------------------------------------------------------------------------ [2003-01-16 13:25:44] [EMAIL PROTECTED] Your include_path is wrong: include_path c:\php4\pear;c:\ c:\php4\pear;c:\ should read include_path="c:\php4\pear;c:\" an then you should fopen "c:\authenticate.txt" like this: $fp= fopen("autenticate.txt","r",1); because c:\ is already in your include path and you use 1 as your 3rd parameter. Christoph Christoph ------------------------------------------------------------------------ [2003-01-16 10:44:02] [EMAIL PROTECTED] Hi So anybody have idea what to do with fopen(windows env) or should I go back to Unix which snapshots are more stable Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-15 20:53:24] [EMAIL PROTECTED] Hi I just switch to Apache 1.3 old one from 2.43 this is what I got as well when I try ini_set('include_path', '.;c:\php4\pear c:\\'); echo ini_get('include_path'), '<br />'; $fp = fopen('C:\php4\pear\authenticate.txt','r',1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); .;c:\php4\pear c:\ Warning: fopen(C:\php4\pear\authenticate.txt) [function.fopen]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\authfile.php on line 4 Warning: fread(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\authfile.php on line 5 Warning: fclose(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\authfile.php on line 6 Well I this point I assume that this is not apache proble just binary windows dist 4.3 php is with bugs .How I can install latest snapshot ,please I need an anser not just maybe ,babe :)) :)) or anybody out there has some simmilar story Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-15 19:17:59] [EMAIL PROTECTED] Do I need a wininstaller to install snapshot if so How to do it ? Is ther Apache 1.3 win-32 with SSL ? Honestly to God I have less problems with Oracle 9.2.0.2 on my suse linux than that Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-15 19:14:26] [EMAIL PROTECTED] Hi Sorry Gents but nothing same error this is my include_path 1 ; Windows: "\path1;\path2" 2 ; include_path = ".;c:\php4\includes" 3 include_path=".;c:\php4\pear" 4 ; include_path="c:\php4\pear;c:\php4\php-4.3.0-Win32" Please notice with this path Pear Db doesn't work and complaining about files it has to open When I uncommented line 4 pear Db that I installed in c:\php4\pear works fine With all line commented phpinfo() shows me .;C:\php4\pear and Pear Db also works OK I tried all scenerio as 1. removing absolte path as Sniper suggested 2. puting this code ini_set('include_path', '.;c:\php4\pear c:\\'); echo ini_get('include_path'), '<br />'; $fp = fopen('authenticate.txt','r',1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); That what I got it .;c:\php4\pear c:\ Warning: fopen(authenticate.txt) [function.fopen]: failed to create stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 6 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 7 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 8 Hope this will help You.I'm tried maybe going back to apache 1.3 isn't but suggestion and instaling latest snapshot .Do I need win- ------------------------------------------------------------------------ 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/21649 -- Edit this bug report at http://bugs.php.net/?id=21649&edit=1