The stupid question is the question not asked | |
PerlMonks |
Re: Is there a way that I can use this new image in a web page?by BrotherAde (Pilgrim) |
on Aug 21, 2001 at 11:06 UTC ( [id://106483]=note: print w/replies, xml ) | Need Help?? |
There certainly is... all you need to do is put a link to the "image" into your html, e.g. <img src="random.pl" height="100" width="100" />. What I did on one of my servers is actually to tell Apache that all the *.png-files in a certain directory are to be handled as perl-scripts, so the user on the other end thinks s/he's getting real *.png images. Both methods in this post require your script to print "content-type: image/png\n\n"; before the actual image.
Hope that helps
In Section
Seekers of Perl Wisdom
|
|