http://helpmenow.dalibor-sojic.info/adsl/graph

This is with

$context = stream_context_create(
    array('http' => array(
     'method' => 'POST',
      'content' => http_build_query($this->_post),
        'header' => "Content-Type: application/x-www-form-urlencoded\r
\n")));
  fpassthru(fopen('http://chart.apis.google.com/chart', 'r', false,
$context));

---------- Forwarded message ----------
From: Rémi Lanvin <[email protected]>
Date: Aug 18, 3:11 pm
Subject: Chart over php (curl or fpassthru)
To: Google Chart API


2010/8/18 Dalibor Sojic <[email protected]>:

> I'm trying to use google chart sending post parametars, but always get
> image: The image “URL” cannot be displayed, because it contains
> errors.

Hello,

Remove the header that sets the content-type to image/png and you'll
be able to see the errors/warnings triggered by PHP.

--
Rémihttp://googlechartphplib.cloudconnected.fr/

-- 
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