Thanks, yeah that has worked.
Now I have a new problem. <Sigh> One little chunk at a time....
I am getting problems from an otherwise successful technique
$var = hexdec(bin2hex(strrev(fread($fp, 4))));
except when I do
$var = hexdec(bin2hex(strrev(fread($fp, $SizeOfData))));
where strlen($SizeOfData) returns something like 300800.
Even if I do nothing to it but convert and reconvert pack via pack, I am getting #INF. If I do the exact same thing with much smaller byte lengths (variables), it completely works. Its purely on the big stuff.
Can anyone see a workaround or a fix for this?
Thanks