note 27459 deleted from function.fgetcsv by cmb

From: Date: Sun, 16 Jun 2019 08:16:52 +0000
Subject: note 27459 deleted from function.fgetcsv by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211276@lists.php.net to get a copy of this message
Note Submitter: anthony dot thomas at nospam dot com ---- 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!

« previous php.notes (#211276) next »