RE: Reading binary file data into variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Did you try using fopen's binary safe read?  Something like :

$binary_data = "";
$fp = fopen ( $file, "rb" );
while ( ! feof ( $fp ) ) {
	$binary_data .= fgets ( $fp );
}
fclose ( $fp );

Don't know if it will work (or if you already tried it)...more like a
guess.
[/snip]

Yes, tried that. It throws an error when trying to open the ZIP file
"missing 1 byte in Zip File..."

[snip]
PS don't trust that Nichel guy, he's really a HTML monkey using Front
Page.
[/snip]

But I think I can make him buy us all a beer one day. BTW, even though
this is Texas I found some Dixie the other day....mmmmmmmmmmmmmm
delicious Dixie Beer.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux