note 27459 added to function.fgetcsv

From: Date: Fri, 06 Dec 2002 15:29:09 +0000
Subject: note 27459 added to function.fgetcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-40426@lists.php.net to get a copy of this message
fgetcsv stops reading your file? I had to write a script to validate and import a large amount of data to MySQL and it would stop running. I've noticed, after trawling the internet for a solution, quite a few people have had similar problems. Solution? Like a dope I had forgotten to put in set_time_limit() within a loop. Otherwise the script would time out before it finished importing all the data. Moral of the story? Only suppress errors after your script works with a large amount of test data! -- http://www.php.net/manual/en/function.fgetcsv.php http://master.php.net/manage/user-notes.php?action=edit+27459 http://master.php.net/manage/user-notes.php?action=delete+27459 http://master.php.net/manage/user-notes.php?action=reject+27459

« previous php.notes (#40426) next »