in reply to Using an image as a header with GD::Graph

It looks like you're just printing out two images, one after the other, both in response to a single HTTP request.

That won't work. You can only send a single image back for each request. You will need to either combine the two images into one (and I'm sure that GD will allow you to do that) or have two separate requests, one for the header and one for the graph.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Using an image as a header with GD::Graph

Replies are listed 'Best First'.
Re^2: Using an image as a header with GD::Graph
by ptum (Priest) on Nov 07, 2006 at 15:25 UTC

    Yeah, when I need a bunch of graphs on a page, what I usually do is to write multiple images to distinct files (as it seems you were trying) and then refer to them each using an <img> tag in a larger HTML document.