|
Posted by iulian.ilea on 09/20/06 08:47
Hi,
I use JpGraph to generate some graphs and I have to include those
graphs in a pdf file, generated usign fPDF (http://www.fpdf.org/). If I
include a png file it's ok, the pdf file is generated, everithing goes
ok. If I use this code:
___
$logo=file_get_contents('splineex1.php');
//Output it (requires PHP>=4.3.2 and FPDF>=1.52)
$pdf->Image('var://logo', 0, 0, 150, 0, 'PNG');
___
....to include genereted graph i get this error:
___
CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:
___
So, I need to save generated graph into a file and then to include in
pdf using
___
$logo=file_get_contents('splineex1.png');
//Output it (requires PHP>=4.3.2 and FPDF>=1.52)
$pdf->Image('var://logo', 0, 0, 150, 0, 'PNG');
___
The problem is that I can't find how to save it.
http://www.fpdf.org/
http://www.aditus.nu/jpgraph/
I use PHP 4.....
Navigation:
[Reply to this message]
|