Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Displaying randomly created png's in HTML

by Jouke (Curate)
on Aug 21, 2001 at 21:56 UTC ( #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
Node Status?
node history
Node Type: note [id://106662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-08-24 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?