How to import CSV into SQLite3
To import a CSV file into SQLite is easy.
.import path/to/file.csv name_of_table
PHP Headers for Sending CSV File Downloads
If you would like to force a file download prompt to the user, instead of just outputting the text to the browser, use the following headers.