#21649 [Opn]: This this problem with fopen() function for windows
| From: | lipinski7722 at rogers dot com | Date: | Wed, 15 Jan 2003 08:12:23 +0000 |
| Subject: | #21649 [Opn]: This this problem with fopen() function for windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30069@lists.php.net to get a copy of this message | ||
ID: 21649
User updated by: lipinski7722@rogers.com
Reported By: lipinski7722@rogers.com
Status: Open
Bug Type: Filesystem function related
Operating System: win2000 server
PHP Version: 4.3.0
New Comment:
I just want to say that I included double \\ in path
as well no luck
$fp = fopen("C:\\authenticate.txt","r",1);
Previous Comments:
------------------------------------------------------------------------
[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