Well you just need to open the file and read out the bytes, it's farily simple in both C and PHP. The way the data is stored is actually pleasingly straight-forward, you can see what each byte means on the LFS site: http://www.lfs.net/?page=MPR.
OK - It's been a long time since I did any PHP, and I never really worked with binary data much, but if I remember rightly you just need to read the data out as strings and then use the unpack() function to convert the bytes from their binary representation into all the nice numbers and stuff that you need. If you look round the forum, or search on google, you'll find a few example of how to work it.