Reading NULL Characters from Files

From: Date: Sun, 15 Oct 2000 07:00:52 +0000
Subject: Reading NULL Characters from Files
Groups: php.general 
Request: Send a blank email to php-general+get-20223@lists.php.net to get a copy of this message
Hi, It appears that PHP (3.0.9) simply cannot read NULL characters from files. In specific, I am using a TCP stream creating using fsockopen() to a remote server. feof(), fgets(), and fread() all fail once they reach the NULL character(s). The manual says that fread() is "binary safe." Are there any workarounds for this problem? Thanks, Toby McNulty Xorsis Software Software Development and Web Hosting services mailto:toby@xorsis.com http://www.xorsis.com

« previous php.general (#20223) next »