Re: JPEG and Perl
- From: James Taylor <spam-block-@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 19:32:28 +0100
In article <1125424852.401765.228200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
CSUIDL PROGRAMMEr <syedamjad_a@xxxxxxxxx> wrote:
>
> All I want to do is to display a image on my html page using perl.
Sorry, it is not clear why you need to use Perl to display an
image. Your code below has several problems, and I cannot guess
from reading it what you really want to do.
> Here is my code
>
> #!/usr/bin/perl
You should always use strict and warnings.
> print "Content-type:image/jpeg\n\n";
This looks like a CGI script that is about to supply JPEG data but
it then supplies HTML instead.
> print " </html>";
That end tag is out of place.
> print "<body>";
There is no doctype or head?
> print " <IMG SRC='emb.jpeg'> " ;
> print "</body>";
> print"</html>";
> Is it right or am i missing something
I don't think Perl is your problem. You need to understand more
about how CGI and HTML works. I suggest you ask in a group that
covers CGI (not this one). Try comp.infosystems.www.authoring.cgi.
--
James Taylor, London, UK PGP key: 3FBE1BF9
To protect against spam, the address in the "From:" header is not valid.
In any case, you should reply to the group so that everyone can benefit.
If you must send me a private email, use james at oakseed demon co uk.
.
- References:
- JPEG and Perl
- From: CSUIDL PROGRAMMEr
- JPEG and Perl
- Prev by Date: Re: Perldoc on the web
- Next by Date: Re: MJD HOP influence
- Previous by thread: JPEG and Perl
- Next by thread: Give benefit of doubt to perl newbies
- Index(es):
Relevant Pages
|
|