ID: 21649 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Filesystem function related Operating System: win2000 server PHP Version: 4.3.0 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2003-01-15 19:14:26] [EMAIL PROTECTED] Hi Sorry Gents but nothing same error this is my include_path 1 ; Windows: "\path1;\path2" 2 ; include_path = ".;c:\php4\includes" 3 include_path=".;c:\php4\pear" 4 ; include_path="c:\php4\pear;c:\php4\php-4.3.0-Win32" Please notice with this path Pear Db doesn't work and complaining about files it has to open When I uncommented line 4 pear Db that I installed in c:\php4\pear works fine With all line commented phpinfo() shows me .;C:\php4\pear and Pear Db also works OK I tried all scenerio as 1. removing absolte path as Sniper suggested 2. puting this code ini_set('include_path', '.;c:\php4\pear c:\\'); echo ini_get('include_path'), '<br />'; $fp = fopen('authenticate.txt','r',1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); That what I got it .;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\Apache2\htdocs\authfile.php on line 6 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 7 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 8 Hope this will help You.I'm tried maybe going back to apache 1.3 isn't but suggestion and instaling latest snapshot .Do I need win- ------------------------------------------------------------------------ [2003-01-15 15:02:17] [EMAIL PROTECTED] With the following script, I can't reproduce it on a win2k apache-1.3 system, with yesterday's stable snapshot: <?php ini_set('display_errors', 1); error_reporting(E_ALL); // notice the space in the include_path where a semicolon should be // also with a solid path no error ini_set('include_path', '.;d:\php4\pear c:\\'); echo ini_get('include_path'), '<br />'; // also with 'foo.txt', it works, when include_path is valid $fp = fopen('c:\foo.txt', 'r', 1); var_dump($fp); if($fp) fclose($fp); ?> ------------------------------------------------------------------------ [2003-01-15 14:29:17] [EMAIL PROTECTED] You're using the 3rd param for fopen(), which says to look in the include path for the file, but you're still using the absolute path to it..what if you change it to plain 'authenticate.txt' ?? ------------------------------------------------------------------------ [2003-01-15 10:58:22] [EMAIL PROTECTED] Hi Sniper As You wish :)) This is what I got when I change a include_path as You suggested include_path .c:\php4\pear;c:\ .c:\php4\pear;c:\ look at 1.source <?php $fp = fopen("C:\\authenticate.txt","r",1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); .... ?> 2.errors a) fopen() 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 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\authfile.php on line 5 b) Pear db Warning: main(DB.php) [function.main]: failed to create stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\login_db.php on line 2 Fatal error: main() [function.main]: Failed opening required 'DB.php' (include_path='.c:\php4\pear;c:\') in C:\Program Files\Apache Group\Apache2\htdocs\login_db.php on line 2 be more systematic :)) :)) I say changing the path in php.ini doesn't do the trick I change it back to include_path="c:\php4\pear;c:\php4\php-4.3.0-Win32" and put my authenticate.txt afert kicking Apache I got from phpinfo() include_path c:\php4\pear;c:\php4\php-4.3.0-Win32 c:\php4\pear;c:\php4\php-4.3.0-Win32 read this portion and I need an anser please no more guess $fp = fopen("C:\\php4\\php-4.3.0-Win32\\authenticate.txt","r",1); $auth_file = fread ($fp, filesize($fp)); fclose($fp); Now I got Pear DB working and same error with fopen() this is a print out Warning: fopen(C:\php4\php-4.3.0-Win32\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 Warning: fclose(): supplied argument I hope this will help You Best Regards W.J.Lipinski ------------------------------------------------------------------------ [2003-01-15 09:30:54] [EMAIL PROTECTED] Please use the 'Edit Submission' page when you edit your own bug reports. And does your example work with the ".;c:\php4\pear;c:\" as include_path ? And what error does the PEAR Db give then? ------------------------------------------------------------------------ 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