|
Posted by Jerry Stuckle on 11/25/07 02:35
Bint wrote:
> Hi,
>
> I have a binary string containing a compressed image. I need to bypass the
> header portion in order to pass a pointer to the correct uncompression
> routine. Say the header is four bytes, can I just say $newdata = $data+4?
> If not, how would I do that?
>
> Thanks
> B
>
>
>
No. This is not C. Pointer arithmetic does not work. You meed
something like substr($data, 4);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|