|
Posted by Toby A Inkster on 04/10/07 09:13
programming wrote:
> while(($data = fgetcsv($listf,1024,"|"))!=FALSE)
> {
[...]
> $data = fgetcsv($listf, 1024);
I'm not very familiar with fgetcsv() but you appear to be reading two
lines for each iteration. Which means that if the file has "n" lines,
you'll only end up with "n/2" iterations of the while loop.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|