View unanswered posts | View active topics It is currently Sat Sep 28, 2024 10:44 pm



Reply to topic  [ 2 posts ] 
Writing a CSV file 
Author Message
Regular pChart user
Regular pChart user

Joined: Sat Feb 19, 2011 1:00 am
Posts: 16
Post 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?


Sat Dec 03, 2011 3:56 am
Profile
Regular pChart user
Regular pChart user

Joined: Tue Jun 07, 2011 1:43 pm
Posts: 12
Post 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


Mon Dec 12, 2011 1:48 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: