Closed GoogleCodeExporter closed 8 years ago
Sorry i got the order of info mixed up
Original comment by Peta...@gmail.com
on 12 Aug 2010 at 3:33
public function renderImage($post = false) {
header('Content-type: image/png');
if ($post) {
$this->setDataSetString();
$url = 'http://chart.apis.google.com/chart?chid=' . md5(uniqid(rand(), true));
$context = stream_context_create(
array('http' => array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded' . "\r\n",
'content' => urldecode(http_build_query($this->chart, '', '&')))));
fpassthru(fopen($url, 'r', false, $context));
} else {
$url = str_replace('&', '&', $this->getUrl());
readfile($url);
}
}
Original comment by Peta...@gmail.com
on 12 Aug 2010 at 3:34
Hello,
I merged your code in r49.
Let me know of you have any more problems.
Thank you for your improvements to the project!
Original comment by bardellie
on 16 Aug 2010 at 12:46
Original issue reported on code.google.com by
Peta...@gmail.com
on 12 Aug 2010 at 3:28