Strip of code - what could be wrong?

From: Date: Sat, 18 Dec 2004 21:03:48 +0000
Subject: Strip of code - what could be wrong?
Groups: php.general 
Request: Send a blank email to php-general+get-204660@lists.php.net to get a copy of this message
Hi there! I'm trying to figure out some code I haven't done myself, but I don't get what could be wrong. Check this code out: the coder says he when he import files, he gets a result that the line ends at wrong positions... Is it 4096 that is wrong? /G @varupiraten.se $file = $rad[url_productlist]; $OpenFile = @fopen($file, "r"); while (!feof ($OpenFile)) { $buffer = fgets($OpenFile, 4096); $rader[] = $buffer; } fclose ($OpenFile); for($i=0; $i<count($rader); $i++) { // Delar av olika delar vid <> $del = explode("<>", $rader[$i]); insert into DBcode... } --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.808 / Virus Database: 550 - Release Date: 2004-12-08

« previous php.general (#204660) next »