I had the same problem, this is what someone else suggested to me. Read the informaion.
I seperated all my data with *, and then seperated the data again with New Lines.
$filedata=@file("%whateverfile here%");
// $filedata is now an array with each row as an element
$firstfield=strtok($filedata[0],"");
$secondfield=strtok("");
$thirdfield=strtok("");
.
.
.
$n_field=strtok("");
then move on to next line
$firstfield=strtok($filedata[1],"*");