[turba] importing TSV files
Jan Schneider
jan@horde.org
Fri, 19 Apr 2002 12:24:55 +0200
Zitat von Liam Hoekenga <liamr@umich.edu>:
> while ($line = explode($delimiter, fgets($fp, 1024))) {
>
> Unfortunately, this doesn't seem to allow it to do anything except eat
> all
> of the available processes on my machine. Curious, because that
> construction worked in my (very simple) trial scripts.
You should try to run explode() in the while loop not in the while
condition:
while ($fget = fgets($fp, 1024)) {
$line = explode($delimiter, $fget);
// do some testing of $line being valid here.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft