ID: 21649 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment:
Are you sure the webserver user has rights to access that path even? Previous Comments: ------------------------------------------------------------------------ [2003-01-16 14:33:36] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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