You are here: Re: reading the correct line sequence from a txt file « PHP Programming Language « IT news, forums, messages
Re: reading the correct line sequence from a txt file

Posted by programming on 04/10/07 10:35

Big problem now it appears that
it appears to be copying the 1st line
of the txt file to web page 3 times...


On Apr 10, 7:13 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> 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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация