[102263] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Perl and tag

daemon@ATHENA.MIT.EDU (Brian Anderson)
Wed Dec 2 09:23:57 1998

Date: Wed, 2 Dec 1998 09:16:30 -0500 (EST)
From: Brian Anderson <bunicula@mediaone.net>
To: RedHat Mailing List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.3.96.981202212424.8594A-100000@network2.cs.usm.my>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Wed, 2 Dec 1998, Ronnie Thum wrote:

> 
> 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


the way it is now, the page it outputs will be looking for it in the
current directory...
<IMG SRC="red.gif" ...>

personally, i'd recommend
	print "<IMG SRC=\"/red.gif\" ...>";
or
	print "<IMG SRC=\"/images/red.gif\" ...>";


as i wouldn't want to have images in my cgi-bin. that way it would end up
looking in / or /images (from the http root)



brian
hoping his "medicine head" brain is working correctly
AAAAA-CHOO!

> ---------
> while ($index < $lines[1])
> {
>      print "<IMG SRC=\"red.gif\" ALIGN=ABSMIDDLE>";
>      $index++;
> }
> -----------


-- 
  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.


home help back first fref pref prev next nref lref last post