Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Is there a way that I can use this new image in a web page?
in thread Random Pictures Using .pngs ... how?

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
BrotherAde

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://106483]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-23 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found