pChart 2.x forum
http://wiki.pchart.net/forum/

Writing a CSV file
http://wiki.pchart.net/forum/viewtopic.php?f=1&t=2291
Page 1 of 1

Author:  brian [ Sat Dec 03, 2011 3:56 am ]
Post subject:  Writing a CSV file

Is there a way to CREATE a .csv file on disk from a pChart? I know you can read them.
I am already giving all my data to pChart, and it must be saving it in memory prior to rendering the chart.
Is there a function to dump all this data as .csv file?
Or, I need to do this another way?

Author:  wildwalks [ Mon Dec 12, 2011 1:48 pm ]
Post subject:  Re: Writing a CSV file

Check out fputcsv

http://php.net/manual/en/function.fputcsv.php

Pass your array to this function then save the CSV file.

Hope that helps

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/