Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If I need two separate scripts (one to display html text, the other a gif piccy)print "Content-type: image/gif\n\n"; open(MYFILE,"$picture_path") or die; binmode MYFILE; undef $/; my $pic = <MYFILE>; close MYFILE; print "Content-Type: image/gif\r\n\r\n"; binmode STDOUT; print STDOUT $pic;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Content-type: html and images ?
by davorg (Chancellor) on Feb 10, 2003 at 13:36 UTC | |
Re: Content-type: html and images ?
by pfaut (Priest) on Feb 10, 2003 at 13:45 UTC | |
•Re: Content-type: html and images ?
by merlyn (Sage) on Feb 10, 2003 at 15:47 UTC | |
Re: Content-type: html and images ?
by Jaap (Curate) on Feb 10, 2003 at 13:32 UTC | |
by Anonymous Monk on Feb 10, 2003 at 14:31 UTC | |
by davorg (Chancellor) on Feb 10, 2003 at 14:54 UTC | |
by Anonymous Monk on Feb 10, 2003 at 15:47 UTC | |
by davorg (Chancellor) on Feb 10, 2003 at 16:16 UTC | |
Re: (nrd) Content-type: html and images ?
by newrisedesigns (Curate) on Feb 10, 2003 at 16:44 UTC |