Not sure why my im getting a blank page ? There is data in the .txt and no errors in the php ?
Every time you are echo the last line.
And every $aLineOfCells is an array.You need to take it out.
<?php
$fp = fopen("products.txt", "r");
flock($fp, LOCK_SH);
$headings = fgetcsv($fp, 0, "\t");
$aline = '';
while ($aLineOfCells = fgetcsv($fp, 0, "\t")) {
$records[] = $aLineOfCells[0];
$aline = $aline . $aLineOfCells[0] . "\n";
}
flock($fp, LOCK_UN);
fclose($fp);
echo $aline;
?>