Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Displaying randomly created png's in HTML

by Jouke (Curate)
on Aug 21, 2001 at 21:56 UTC ( [id://106662]=note: print w/replies, xml ) Need Help??


in reply to Displaying randomly created png's in HTML

OK, a few hints:
1. You want to set binmode for STDOUT before you write the $im->png().

2. The html script should look like this:
#!/usr/bin/perl -w print "Content-type: text/html\n\n"; print<<HTML; <html><head><title>testing more</title></head> <body bgcolor=#ffffff> <center> <img src='gd1.pl' height=100 width=100> </center> </body> </html> HTML
HTH

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found