<?php
    header('Content-type: text/csv');
    header("Content-disposition: attachment; filename=phonalisa_".date('Y-m-d_H:i:s',$startTime).".csv");
    header("Pragma: no-cache");
    header("Expires: 0");
    $content = file_get_contents($tmpPath.$filname);

    unlink($tmpPath.$filname);
    print $content;
    exit();