#21649 [Opn->Fbk]: This this problem with fopen() function for windows

From: Date: Wed, 15 Jan 2003 09:10:41 +0000
Subject: #21649 [Opn->Fbk]: This this problem with fopen() function for windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30075@lists.php.net to get a copy of this message
ID: 21649 Updated by: sniper@php.net Reported By: lipinski7722@rogers.com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment: What is the exact include_path line in your php.ini? Previous Comments: ------------------------------------------------------------------------ [2003-01-15 02:12:22] lipinski7722@rogers.com I just want to say that I included double \\ in path as well no luck $fp = fopen("C:\\authenticate.txt","r",1); ------------------------------------------------------------------------ [2003-01-15 02:03:56] lipinski7722@rogers.com $fp = fopen("C:\authenticate.txt","r",1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); in include_path I have include_path c:\php4\pear;c:\ c:\php4\pear;c:\ That what I got Warning: fopen(C:\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 3 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 4 As You can see I have Apache2. Since I'm more oracle guru than PHP I'd like to see more consistent way You do bug reporting I will benefit everbody. Best Regards W.J.Lipinski ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21649&edit=1

« previous php.bugs (#30075) next »