Re: How to check if uploaded file is binary or ascii?
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 30 Aug 2006 20:50:13 -0700
veg_all@xxxxxxxxx wrote:
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?
Just look for \x00. Binary files would inevitable have it.
.
- Follow-Ups:
- Re: How to check if uploaded file is binary or ascii?
- From: veg_all
- Re: How to check if uploaded file is binary or ascii?
- References:
- How to check if uploaded file is binary or ascii?
- From: veg_all
- How to check if uploaded file is binary or ascii?
- Prev by Date: Re: What editor is the most common in PHP developer?
- Next by Date: Testers Wanted
- Previous by thread: How to check if uploaded file is binary or ascii?
- Next by thread: Re: How to check if uploaded file is binary or ascii?
- Index(es):
Relevant Pages
|