Page 1 of 1

check if pdf...

Posted: Wed Dec 29, 2004 1:25 pm
by andre_c
Is there any way to check if a file on the server is a pdf document?
I know how to check the extension, but i wonder if i can do something a little more like exif_imagetype

Posted: Wed Dec 29, 2004 1:30 pm
by feyd
I've posted the link to the file format spec for pdf's before, that'll tell you want binary information to look for.