Reply to How to check if uploaded file is binary or ascii?
Posted by veg_all on 08/31/06 02:50
I have a script where a user can upload their csv file into a mysql
database. The problem is sometimes a user will upload the raw excel or
access file. How can I perform some simple checks to determine if the
file is binary. I could do some regular expressions to check for
unusual characters, but how would I read the file line by line?