Re: [PHP-WIN] can't read binary files containg '0x0' character

2001-10-12 Thread Roland Divin
;news:[EMAIL PROTECTED]... On Fri, 12 Oct 2001 21:00:24 +0200, Roland Divin wrote: >Hi, >I can'r read binary file that contains '0x0' character. Reading >process >stops after reading '0x0' character on windows version of PHP. On >Linux it >does n

[PHP-WIN] Re: can't read binary files containg '0x0' character

2001-10-12 Thread Roland Divin
This error is included only in sapi/php4apache.dll. If I use CGI (php.exe) it works perfectly. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTE

[PHP-WIN] can't read binary files containg '0x0' character

2001-10-12 Thread Roland Divin
x27;0x0' characters. I'm using PHP4 build from Jun 22 2001.) $filename = "text.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); echo $contents; echo strlen($contents); for($i=0;$i"; } Isn't it bug? Thanks