The data i am trying to parse is a video file that has information contained within. Could you tell me what query should i write in unpack so that all the relevant information (Clip Information) can be retrieved from the binary file?
Hehe. I see the problem.
I am very new to php and have never worked on a problem like that. Sorry if that sounds too stupid.
Dealing with binary data is beyond regular programming, and if you are new to programming, I'm sure that it's safe to assume that you are almost completely inexperienced with binary data. Dealing with binary data is up there with ASM and disassembly, as you are dealing with the raw data instead of human-readable code.
Files have formats. It's usually in the style of "Header" then "Data." You have to be familiar with the file format and the data types in order to decipher which bits are what, and then you have to be familiar with the storage types in order to translate the data into a usable format. I've been planning on writing a tutorial for dealing with binary data in PHP, but the interest is low and the extent of work necessary to teach it is not.
If you'd really like to deal with file formats in PHP without having to learn anything in-depth about file formats, search GoogleCode, SourceForge, or PHPClasses for pre-made scripts and APIs that deal with the file format that you are after.