note 60368 rejected from function.fgetcsv by nlopess

From: Date: Wed, 04 Jan 2006 23:28:38 +0000
Subject: note 60368 rejected from function.fgetcsv by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101230@lists.php.net to get a copy of this message
Note Submitter: juha at kinesissurvey dot com ---- On PHP 4.4 fgetcsv refuses to work: $values=fgetcsv($fileh); DOESN'T WORK To get it working you need to add line lenght and the separator! $values=fgetcsv($fileh,32000,","); WORKS BEWARE that example will get you into endless loop! Use while($values=fgetcsv($fileh,32000,",")) { // Processing here }

« previous php.notes (#101230) next »