P is for Practical | |
PerlMonks |
Re: Displaying randomly created png's in HTMLby count0 (Friar) |
on Aug 21, 2001 at 20:54 UTC ( [id://106637]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|