fgets function for very large files

From: Date: Sat, 23 May 2009 06:11:37 +0000
Subject: fgets function for very large files
Groups: php.general 
Request: Send a blank email to php-general+get-293002@lists.php.net to get a copy of this message
hi all, I have a csv file with more than 100,000 lines. I want to insert each line as a record in a database. but for the reason of very number of lines, I put a button with caption Next, when we click on it, 1000 line will insert into db and then again click next button and insert next 1000 line and.... is this good way? what do you recommend? and how can I do that? Thanks in advance, shahrzad

« previous php.general (#293002) next »