Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: using GD inside CGI...

by themage (Friar)
on Dec 19, 2006 at 17:45 UTC ( #590719=note: print w/replies, xml ) Need Help??

in reply to using GD inside CGI...

Hi UrbanHick,

You can create two diferent cgi (or the same cgi called with diferent parameters), one to return the HTML, and the other to return the image.

Or you can have the cgi that return the html process and save the image to disk, and then in the HTML put the URL to that image. This is what I would do, because this way I already know that the image was correctly processed when I send the HTML to the client.

The last alternative (that I never tried) is to put the image in base64 (I think) in the HTML. If you prefer this on (I hope not), you can read about it in

Talking Web

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590719]
[Eily]: when did you become a bishop though? 428 xp that's not too long ago is it?
[Eily]: and congratulations :P
[choroba]: Eily++ # made the smiley on his face instead of in the message
[LanX]: weekend ... and waiting that chacellor choroba finally catches up ;-p
LanX last weekend or the one before (???)
choroba needs more questions to provide answers to
jedikaiti looked at last hour of CB, saw "boos" but read "boobs"

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-09-20 15:54 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.