PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
We have a need to ensure a user is uploading an acceptable file format (image artwork). The company only supports Windows and would like to know if it's possible to discern between Windows and Mac. Then let the user know the file was acceptable or not.
most file formats use a specific byte order. For the formats that don't, which is few, they normally have a byte order marker/indicator inside the file format. TIFF's for example have a two byte marker that shows which order (big-endian or little-endian) the data was written in. MP3s have the same sort of form.