The example PHP code made available here is incorrect:

http://code.google.com/apis/chart/docs/post_requests.html


Here's the code:
====================================
<?php
  // Create some random text-encoded data for a line chart.
  header('content-type', 'image/png');
  $url = 'http://chart.apis.google.com/chart';
====================================


The second argument to header() is supposed to be a boolean flag
specifying whether it should replace a pre-existing header of the same
name. The correct usage would be:

====================================
header('content-type: image/png');
====================================

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to