Re: Bug #13598: Arrays taking up to much memory
| From: | mlwmohawk at mohawksoft dot com | Date: | Mon, 08 Oct 2001 20:03:24 +0000 |
| Subject: | Re: Bug #13598: Arrays taking up to much memory | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67563@lists.php.net to get a copy of this message | ||
Does this do what you want? Does it exhibit the same problems?
if (!($fd = fopen ($file, "r"))) {
// Some error and exit
}
$total = array();
$counter = 0;
while (1) {
$total[$counter] = fgetcsv ($fd, 580, $delimiter);
if(!$total[$counter++])
break;
}
if (!fclose ($fd)) {
// Some error and exit
}