I'm trying to read from a file on the server named records.dat. I'm exploding the line into separate values to be input in to the page. Everything is working fine except that the page is outputting blank information if the file is new...
it continues to output the lines into the page perfectly after it outputs the blank info.
while (!feof($fp)){
$line = fgets($fp, 4096);
$lineArray = explode("||", "$line");
if ($lineArray[0] != "\n" || $lineArray[0] != "" || $lineArray[0] != "\r" || $lineArray[0] != null){
//BEGIN ECHO OF MATERIAL
}