title: Save Google charts as a image
body: <p>So after hours of websearching, googling and overflowing i can't find the solution to my problem.</p>
  
  <p>I got a linechart from Google charts. I want to convert it to PNG, save it on the server en insert it into a MySQL database.</p>
  
  <p>Sounds simple, but i cant get it to work. The script from this website isnt working anymore (atleast not here) <a href="http://www.battlehorse.net/page/topics/charts/save_google_charts_as_image.html" rel="nofollow">http://www.battlehorse.net/page/topics/charts/save_google_charts_as_image.html</a> -> Not working.</p>
  
  <p>Second option is the old option:</p>
  
  <pre><code>$imageData =     file_get_contents('http://chart.apis.google.com/chart... etc');
  </code></pre>
  
  <p>I cant use that because its not supported anymore and cant get some decent quality out of it.</p>
  
  <p>Is there anybody here that can give a good tutorial or help for my problem?</p>
  
  <p>EDIT:</p>
  
  <p>I used the code from Battlehorse combined with the code from EriC.</p>
  
  <p>So now i got this working to show the chart as an image in a DIV i want to save this image on the server and update the mysql to use it in the future to use it in PDF files.</p>