Hi, I have a text file which is something like
Andy male 3 4 5 6
Peter female 4 5 6 7
...
Now, I want to cut each line off and put them into a array, my code is something like below:
$file = file("result.txt");
while(!feof($file))
{
$line = $file[$i];
}
$lineField = exploole("\t", $line);
but when I run the code, it always said something like:
Warning: feof(): supplied argument is not a valid stream resource in /home/p/pxi/php/ass2/view.php on line 4
and I have used servephp command to start my server, and I can write result.txt file successfully, is any syntax error in my code, please point out, thankx!🙁