> We have a text file that is 2.2gb in size that we are trying to parse > using PHP to put the content into a mysql database. This file contains > 40 million individual lines of data. Basically PHP isn't parsing it. > Any suggestions of how we could do this?
Without knowing more information (eg: Any errors, does the script run completely, partially, or not at all?) I would say that you could running into the script execution timeout. Check your php.ini file for max_execution_time and adjust accordingly. If you are surpassing max_execution_time then you will notice that the script runs correctly, but it will not finish parsing all of the data. If you check the DB, do some of the records show up there? -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php