Reply to Re: data pointer, binary string offset (newbie question)

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация