Question

I'm working on a script that outputs CSV files, and it's a pain to try to open CSV every time I run the script to debug the next step. Is there a way to open CSV directly in FireFox. I know there's a plugin for JSON, but couldn't find a plugin for CSV

Was it helpful?

Solution

Firefox should be able to handle CSV content without a plug-in.
What content-type are you using in your script?

header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=file.csv");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top