Take the tour × $string = (string)
file_get_contents($_FILES['file']['tmp_name']);  echo $string;
// Correctly echos string contents    // No matches  I am
parsing text/csv files and grabbing email addresses from
uploaded files. When parsing a Google Contact file I exported it
weirdly fails. But when I simply copy the string that is echo'd
and paste that instead of the file_get_contents result, it
parses and works.  Any idea why it is refusing to take the
file_get_contents string, but if I paste in the raw data myself,
it works?  share|improve this question I think it's the
file_get_contents and uploading problem, you should remove the
preg-match-all tag? EDIT: try using move_uploaded_file then read
it? –  SHiNKiROU Jan 14 '11 at 4:55 Just a note; Since you're
using the case-insensitive modifier, I believe it's redundant
including both cases of alpha character ranges in your character
classes. a-z should suffice. –  Dan Lugg Jan 14 '11 at 5:21 add
comment  1 Answer  $_FILES['file']['tmp_name'] is a temporary