How to check if uploaded file is binary or ascii?
- From: veg_all@xxxxxxxxx
- Date: 30 Aug 2006 19:50:15 -0700
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?
.
- Follow-Ups:
- Re: How to check if uploaded file is binary or ascii?
- From: Kimmo Laine
- Re: How to check if uploaded file is binary or ascii?
- From: Chung Leong
- Re: How to check if uploaded file is binary or ascii?
- Prev by Date: newbie - add 15 to number in list
- Next by Date: Re: What editor is the most common in PHP developer?
- Previous by thread: newbie - add 15 to number in list
- Next by thread: Re: How to check if uploaded file is binary or ascii?
- Index(es):
Relevant Pages
|