Gossamer Forum
Quote Reply
Graphs.
Hi All,

Working on my graphs at the moment (Creating them using GD creating a PNG bar graph. Anyway - If you look at...

http://216.55.12.182/graph/testgraph.php you can see that the graph is created no probs...

but if I try to include it in some output with HTML in it I get an error. The reason is that in the file that creates the graph I had to place

header("Content-type: image/png");

to get the image to show up. If I remove it to include it, it still doesn't show up, but gives me a bloody error message that doesn't make sense.

Anyone know how to make some sense of this? Thanks.

http://216.55.12.182/graph/graph.php is the page trying to include the graph.

------------------
Michael Bray
Review your webhost or find a new one.
www.webhostarea.com
Links SQL User
------------------






[This message has been edited by Michael_Bray (edited May 05, 2000).]
Quote Reply
Re: Graphs. In reply to
I haven't played with this much, but I'm not able to see the graph. I get a bad content type message, and no viewer available.

You might want to look at the program Report Magic for Analog. I don't have the URL, but you can find it from the analog website.

It uses several libraries GD and GD::Text (?) and others, and it may have some answers to your problems.

Quote Reply
Re: Graphs. In reply to
Damn...

Its coming up with some quicktime thing while its loading on my computer - but it works though...

I'll figure it out. Thanks!

------------------
Michael Bray
Review your webhost or find a new one.
www.webhostarea.com
Links SQL User
------------------




Quote Reply
Re: Graphs. In reply to
you can't load php inside of html... you have to put a image on the php page to the graph..

like..

<img src="graph.php"> and have that only print out the php graphic content

jerry
Quote Reply
Re: Graphs. In reply to
OK then,

Thanks! That works now. I tried to include it rather then use a img tag.

http://216.55.12.182/graph/graph.php

That works. Thanks Jerry.

------------------
Michael Bray
Review your webhost or find a new one.
www.webhostarea.com
Links SQL User
------------------