Is it possible in PHP to determine whether a file is (intended as)
binary or ascii data other than by examining its extension? I can't find
a ready-made function or script online that does so.
If I open a file with less on my linux box for example it warns when it
'thinks' it's binary rather than ascii.
TIA.
Sh.
binary or ascii data other than by examining its extension? I can't find
a ready-made function or script online that does so.
If I open a file with less on my linux box for example it warns when it
'thinks' it's binary rather than ascii.
TIA.
Sh.
Comment