Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Graham Anderson
Hi Richard :) Looks like all he did was change a couple of atoms names...BEFORE the compressed movie header stuff :( All in all is all pretty basic stuff. I am more interested in what comes AFTER dcomzlib. Quicktime automatically decompressed the movie header when it plays a file, so t

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Richard Lynch
On Wed, October 26, 2005 12:34 pm, Graham Anderson wrote: > The compressor in the file data says: dcomzlib Okay, now we are getting somewhere. dcomzlib is, most likely, not the same as zlib. > I tried the below with gzinflate and with gzuncompress. > Both give errors: > gzinflate(): data error

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Graham Anderson
If I remove pack, I get the error: gzuncompress(): data error $uncompressed = gzuncompress($the_string); echo $uncompressed; in my hex editor, the movie header contains: ftypqt qt PmoovHcmov dcomzlib4cmvd From the Quicktime Docs, 'dcomzlib' is supposed to be th

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Jochem Maas
Graham Anderson wrote: Just to show I am not a total leech, I did consult the manual before I posted the question :) ack. The compressor in the file data says: dcomzlib I tried the below with gzinflate and with gzuncompress. Both give errors: gzinflate(): data error gzuncompress(): data e

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Jochem Maas
Graham Anderson wrote: How do you decompress a zlib'd string located in a file with php ? I need to dynamically write a password string into a movie file. It appears that in QuickTime movie API, all sprite variables/values are zlib'd inside the movie file So I need to: find the string d

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Graham Anderson
Just to show I am not a total leech, I did consult the manual before I posted the question :) The compressor in the file data says: dcomzlib I tried the below with gzinflate and with gzuncompress. Both give errors: gzinflate(): data error gzuncompress(): data error The below is the copy/past

Re: [PHP] Decompress a zlib'd string in PHP

2005-10-26 Thread Richard Lynch
On Wed, October 26, 2005 11:07 am, Graham Anderson wrote: > How do you decompress a zlib'd string located in a file with php ? http://www.php.net/zlib > I need to dynamically write a password string into a movie file. > It appears that in QuickTime movie API, all sprite variables/values > ar