Mercio has asked for the wisdom of the Perl Monks concerning the following question:
and the test.cgi looks like this#!c:/perl/bin/perl print "Content-type: text/html\n\n"; print "<html><body><img src='test.cgi?asdf'></body></html>";
Now, instead of getting an image like I want when the first cgi script is accessed, i get an "X" like their was no image. What am I doing wrong?#!c:/perl/bin/perl print "Content-type: image/gif\n\n"; open(IMG, "packplan.gif"); print <IMG>; close(IMG);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image content help
by ambrus (Abbot) on Jun 17, 2004 at 06:54 UTC | |
by calin (Deacon) on Jun 17, 2004 at 16:05 UTC | |
by Anonymous Monk on Jun 17, 2004 at 07:12 UTC | |
by PodMaster (Abbot) on Jun 17, 2004 at 07:25 UTC | |
by ambrus (Abbot) on Jun 18, 2004 at 07:08 UTC | |
|
Re: Image content help
by saskaqueer (Friar) on Jun 17, 2004 at 08:27 UTC | |
by Mercio (Scribe) on Jun 17, 2004 at 17:00 UTC | |
by saskaqueer (Friar) on Jun 18, 2004 at 05:49 UTC |