ID: 21649 Comment by: moptop69 at ntlworld dot com Reported By: lipinski7722 at rogers dot com Status: Open Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment:
Warning: Unknown(c:\inetpub\wwwroot\calendar.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)() [function.include]: Failed opening 'c:\inetpub\wwwroot\calendar.php' for inclusion (include_path='.;c:\php\includes') in Unknown on line 0 look familliar? this is the otput from IIS under win2k when the security on file you are trying to open/read/execute is not at the level that PHP can work with. You will need to give IUSR_<hostname> read/write/execute* (* delete as applicable) the correct access to that file AND that directory. That should fix your problem Previous Comments: ------------------------------------------------------------------------ [2003-01-22 21:10:59] lipinski7722 at rogers dot com Hi So does anybody had problem the same like mine with fopen? Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-18 11:52:39] lipinski7722 at rogers dot com 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] lipinski7722 at rogers dot com 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] cg at gordimer dot net 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 ------------------------------------------------------------------------ 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