Created
May 13, 2015 09:47
-
-
Save WilbertOnGithub/15bb5f6e71b6f70de95f to your computer and use it in GitHub Desktop.
Highchart export csv page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* DISCLAIMER: Don't use www.highcharts.com/studies/csv-export/csv.php in | |
* production! This file may be removed at any time. | |
*/ | |
$csv = $_POST['csv']; | |
if ($csv) { | |
header('Content-type: text/csv'); | |
header('Content-disposition: attachment;filename=chart.csv'); | |
echo $csv; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment