You are here: Re: Stream from FTP directly to MySQL while parsing CSV « PHP Programming Language « IT news, forums, messages
Re: Stream from FTP directly to MySQL while parsing CSV

Posted by Eric Anderson on 10/08/17 11:38

d wrote:
> As chung was hinting at, use the FTP wrapper by simply opening the file with
> fopen() as you would a local file. You can then use fgets() to read a
> single line at a time, process that line, and repeat until the file has been
> read in its entirity.

I thought about that but I am also reading a large number of file from
the FTP server into the database and my assumption is that if I use
fopen it will login to the FTP server everytime vs just once adding to
the overhead a good bit.

Thanks for the suggestion though. I'll keep it in mind.

Eric

 

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

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