You are here: Re: data pointer, binary string offset (newbie question) « PHP Programming Language « IT news, forums, messages
Re: data pointer, binary string offset (newbie question)

Posted by Kailash Nadh on 11/26/07 03:45

If you want to skip the first 4 bytes, you could try something like
$data = substr($data, 4, strlen($data));

Regards,
Kailash Nadh
http://kailashnadh.name

On Nov 25, 2:25 am, "Bint" <b...@csgs.com> 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

 

Navigation:

[Reply to this 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

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