ID: 21649 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment:
Hi I just change a line in php.ini include_path="c:\php4\pear;c:" when I run after I restarted Apache 2 <?php phpinfo();?> it shows include_path c:\php4\pear;c: c:\php4\pear;c: 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 Same error ??? Best Regards W.J.Lipinski Previous Comments: ------------------------------------------------------------------------ [2003-01-15 07:33:58] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2003-01-15 03:10:40] [EMAIL PROTECTED] What is the exact include_path line in your php.ini? ------------------------------------------------------------------------ [2003-01-15 02:12:22] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] $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