|
Posted by Shawn Hamzee on 07/17/06 19:55
Actually, I just found out what is going on:
In order to use image_graph, one cannot have both a graph and html (php
generated or otherwise) on the same page.
So in order to get around this, you'll have to save the graph to an image
file (.png) and then echo a link in the script for it.
Thanks.
On 7/17/06 15:51, in article diqnb2t34larq6mf8bfkus4i7nfkvbu8to@4ax.com,
"Andy Hassall" <andy@andyh.co.uk> wrote:
> On Mon, 17 Jul 2006 19:34:59 GMT, Shawn Hamzee <hamzee@sbcglobal.net.INVALID>
> wrote:
>
>> I am having a problem with Image_Graph on php 5.1.4. I installed the package
>> and all of its dependencies through pear installer without any hitches. Then
>> I started to add some very simple code to create a graph in an existing php
>> page. I added the code for the graph and added the elements of it plus some
>> static data. However, when I browse the page, I get garbled data instead of
>> the graph. Has anyone ever run into this problem. I am testing this on an xp
>> test bed for now.
>>
>> I am thinking the fact that I'm getting garbled data means that the class
>> creation has gone well; however rendering the graph is not happening for
>> some reason.
>
> Have you output an appropriate Content-type header for the image format
> you're
> using?
[Back to original message]
|