hacmac has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use GD; my $infile = "/opt/apache/icons/apache_pb.png"; my $data; open (my $in_fh, $infile) or die; while (<$in_fh>){ $data .= $_; } close $in_fh; my $image = GD::Image->newFromPngData($data, 1); print "content-type: image/png\n\n"; print $image->png;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI script bringing its own data
by liz (Monsignor) on Sep 03, 2003 at 09:47 UTC | |
by hacmac (Novice) on Sep 03, 2003 at 10:31 UTC | |
by liz (Monsignor) on Sep 03, 2003 at 10:56 UTC | |
|
Re: CGI script bringing its own data
by Skeeve (Parson) on Sep 03, 2003 at 11:41 UTC | |
by hacmac (Novice) on Sep 03, 2003 at 17:29 UTC | |
|
Re: CGI script bringing its own data
by Abigail-II (Bishop) on Sep 03, 2003 at 09:45 UTC | |
by hacmac (Novice) on Sep 03, 2003 at 10:37 UTC | |
by Abigail-II (Bishop) on Sep 03, 2003 at 10:49 UTC | |
|
Re: CGI script bringing its own data
by benn (Vicar) on Sep 03, 2003 at 11:00 UTC | |
|
Re: CGI script bringing its own data
by Taulmarill (Deacon) on Sep 03, 2003 at 12:15 UTC |