Why do I want to do this? I have binary and text data stored in a database. I don't have the file extension. I need to send a correct http header. Anyone got any ideas?$file_data = # ascii or binary data $mime_type = get_mime_type($file_data);
In reply to getting mime type from file content by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |