tags:

views:

47

answers:

1

Hay guys, I'm writing a PHP application to take a NZB file, grab the Yenc files from that, download them, then combine them, then decode them back into binary state.

I've managed the first part, but I'm having trouble combining the Yenc files back into 1 Yenc file.

any ideas?

Thanks

+1  A: 

Have you looked at yEnc PHP Class? That should handle your decoding problem?

If the only problem remaining is combining the parts, have you tried a simple binary-safe append?

Jonathan Fingland
Having you tried that one? I couldn't get it to work.
dotty
I haven't tried it, but what was the problem. you would need to instantiate it first, e.g. `$yEnc = new yenc(); $yEnc->decode(...)` Also note that it was written in 2002 so it is written for php4. You may need to debug it a little to make it work in php5.
Jonathan Fingland