Currently I want to read some data (metadata, scene names, mesh count, vertices count …) from a .blend file with the unpack() function of PHP refering to the Blender SDNA documentation:
http://www.atmind.nl/blender/blender-sdna-256.html
Is there some easy solution to read all these information with some existing classes or libraries or do I have to read block by block from the file and write my own functions / clas / library (so I can create something like an object)?
After consultation with php manual I can tell you that php just doesn’t provide way to read binary files, but I think there’s quite nice way to do this (inspirited by c and fread)
If you have any improvements or tips, just post them in the comment I’ll be glad to extend the answer.