header('Content-type: application/octet-stream'); header("Content-Disposition: attachment; filename=price.csv"); echo fread(fopen('price.csv', "rb"), filesize('price.csv'));