fopen and file dump to a databace...

From: Date: Mon, 10 Mar 2003 02:02:09 +0000
Subject: fopen and file dump to a databace...
Groups: php.general 
Request: Send a blank email to php-general+get-138899@lists.php.net to get a copy of this message
HI, I'm looking to take the data from a CSV file, then upload it into a mysql databace. I figure i will need the following. To count the number of lines ... and cut up each line in its veriables then entering it into the databace. I have: $file = fopen("pricelist-snippet.csv","r"); $buffer = fread($file,10000); echo $buffer; This dumps the data to the screen ... where would i start to making cutting this data up by the line? / Mark

« previous php.general (#138899) next »