Strip of code - what could be wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux