#21649 [Opn->Fbk]: This this problem with fopen() function for windows
| From: | sniper@php.net | Date: | Sat, 18 Jan 2003 03:15:33 +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-30424@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:
Are you sure the webserver user has rights to access that path even?
Previous Comments:
------------------------------------------------------------------------
[2003-01-16 14:33:36] lipinski7722@rogers.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@gordimer.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
------------------------------------------------------------------------
[2003-01-16 10:44:02] lipinski7722@rogers.com
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] lipinski7722@rogers.com
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] lipinski7722@rogers.com
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