I am working on a script that will process user uploads to the server, and as an added layer of security I\'d like to know:
Is there a way to detect a file\'s true e
In *nix, the first two bytes of the file tells you (see "magic number"). In Windows, ...sometimes this will be true ("header info"). It is, ultimately, O.S. dependent.