Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Displaying randomly created png's in HTML

by count0 (Friar)
on Aug 21, 2001 at 20:54 UTC ( [id://106637]=note: print w/replies, xml ) Need Help??


in reply to Displaying randomly created png's in HTML

There are three simple methods that come to mind to include the gd1.pl image in your html.

1) Exactly the same as in your gd2.pl cgi. <IMG src="gd1.pl">
And if you want it to show up in the html as a .png file:
2) Write the png to a file every now and then (such as with a crontab periodic run of gd1.pl, or with an SSI call to gd1.pl)
3) If you run the web server yourself, modify the way .png files are served. Set it up to treat all .png files as perl, or you can even set it up to only do that in a specific directory. See your web server (hopefully Apache ;) docs for details on doing this.
  • Comment on Re: Displaying randomly created png's in HTML

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found