using CGI for IMAGES need help
Hi all
I have been searching the net and cant find any place on how to use cgi to display .gif or .jpeg files. Here is what my script looks like but image doesnt seem to display on the browser .... what am i doing wrong?
#!/usr/bin/perl
$|=1; ## clears the buffer
use CGI ':standard';
print "Content-type: text/html\n\n";
print "<html>\n";
print "<body bgcolor=\"black\" text=\"white\" link=\"#FF0000\" vlink=\"#800000\">\n\n";
print "<pre>\n";
print "<font color=orange>POWERED BY LINUX </font>
<img src=penguin.gif>";
print "</pre>\n";
print "</body>\n";
print "</html>\n";
|