I manually tried to @!#$ up a CSV file by removing some , commas.
This code:
while ( $data = fgetcsv($csv,1000) )
Doesn't raise an error.
It says in the PHP manual that
"fgetcsv() returns false on error, including end of file"
What kind of errors??
I try this:
while ( $data = fgetcsv($csv,1000) )
if (!$data)
print "@!#$!"
But it never happens!
What does fgetcsv() consider an error??