For the file name, use something like this - $filename = "/secured_path/filename";
Where "one" appears now, change this to $filename
The author's code appends the .csv so your file name variable does not include it.
Only the price up to the , is printed, as the , is the field delimiter. The authors code is not sophisticated enough to ignore , located within quoted data. You will need to either change the number format in the csv to eliminate the , in the price or modify the author's code.
For removing the " on the display, change this function near the bottom of the author's include file -
PHP Code:
function _getLineArray($filename)
{
$f = fopen($filename, "rb");
flock($f,LOCK_EX);
fseek($f,0,SEEK_END);
$filesize = ftell($f);
fseek($f,0,SEEK_SET);
$dbVar = trim(fread($f,$filesize));
flock($f,LOCK_UN);
fclose($f);
$dbVar = explode("\n", $dbVar);
$dbVar = str_replace("\"", "", $dbVar); <---- ADD THIS LINE ------------
return $dbVar;
}