#21649 [Com]: This this problem with fopen() function for windows
| From: | lipinski7722 at rogers dot com | Date: | Wed, 15 Jan 2003 13:33:59 +0000 |
| Subject: | #21649 [Com]: This this problem with fopen() function for windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30109@lists.php.net to get a copy of this message | ||
ID: 21649
Comment by: lipinski7722@rogers.com
Reported By: lipinski7722@rogers.com
Status: Feedback
Bug Type: Filesystem function related
Operating System: win2000 server
PHP Version: 4.3.0
New Comment:
Hi Sniper
; Windows: "\path1;\path2"
; include_path = ".;c:\php4\includes"
; include_path=".;c:\php4\pear"
include_path="c:\php4\pear;c:\"
Please notice when I change path to ".;c:\php4\pear;c:\
Pear DB is complaining that cannot find what needed.
Onother story is that when You comment these line
So You shoudn't see any lines.Isn't that strange
.;c:\php4\pear this is being shown from <?php phpinfo();?>
How include_path could be hardcoded????????
Best Regards
W.J.Lipinski
Previous Comments:
------------------------------------------------------------------------
[2003-01-15 03:10:40] sniper@php.net
What is the exact include_path line in your php.ini?
------------------------------------------------------------------------
[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