Hi,
i have a filepointer $fp openend with fopen. Now my problem i to determine
the actual filesize of that file with just the filepointer (not with
filesize($filename) ) is there a way to do so in PHP 3 (not PHP4) ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
Thanx, I think that will save some time.
> Use unpack():
>
> // Grab as many signed 32-bit integers as possible
> $array = unpack ('l*', $data);
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have binary data (ie: 0x7b c8 15 0c ) and want to convert it into a 32Bit
integer (here: 123456789012).
Currently I use this (intel-little-endian):
$integer = hexdec( bin2hex( strrev( readpos( $fd,$position,4 ) ) ) );
readpos reads 4 bytes from a file
Is there a better, faster or easier way t
3 matches
Mail list logo