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 So does anybody had problem the same like mine with fopen? Best Regards W.J.Lipinski Previous Comments: ------------------------------------------------------------------------ [2003-01-18 11:52:39] [EMAIL PROTECTED] User is administrator this is on localhost where PHP4 is configured as Apache 1.3 module What else I have to do in hppdcon for apache ????? Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-17 21:15:33] [EMAIL PROTECTED] Are you sure the webserver user has rights to access that path even? ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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