[102265] in RedHat Linux List
[OT]RE: Perl and
tag
daemon@ATHENA.MIT.EDU (Charles Galpin)
Wed Dec 2 09:26:44 1998
Date: Wed, 2 Dec 1998 09:20:53 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: Ronnie Thum <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Ronnie, where the images live has nothing to do with your cgi. all your cgi
does is generate html. To the web browser this is no different than a static
page. put your images wherever you put them for you static pages, and
generate the correct path to it.
if the generated page does not work properly, create it by hand until it
works, and then make your script generate that html.
===== Original Message from Ronnie Thum <redhat-list@redhat.com> at 12/02/98
8:28 am
>Hi,
>
>I'm using the <IMG> tag in my Perl script.
>Was wondering where should I place my .gif images ?
>Should it be in the same directory as the Perl script ?
>My scripts is located at /home/httpd/cgi-bin/myperl.pl
>The HTML calling the Perl script is at /home/httpd/html/secure/frame.html
>Below is a snippet of my code
>---------
>while ($index < $lines[1])
>{
> print "<IMG SRC=\"red.gif\" ALIGN=ABSMIDDLE>";
> $index++;
>}
>-----------
>
>TIA
>
>Rgds
>Ronnie
>
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.