I actually figured this out about 20min after my origional post.  Since it
seems to have generated some argument here is my followup

Mel is right, it seems that one can only access cgi scripts inside of cgi
folders.  I suppose you could change this in apache's settings somehow, but
it seems to be a bad idea.  The solution to my problem was to move the image
and the .css file to another folder separate from the cgi folder and
reference it there.

Here is a small followup question though.  After I moved the files, say, to
directory /var/www/html/files  and I tried to reference them from the perl
generated html with a hard reference...

          <img src="/var/www/html/files/titlePic.gif">

it didnt work, however, if I referenced it with a URL...

        <img src="http://localhost/files/titlePic.gif";>

it DID work (will I have to change localhost to the server IP address when
im ready to go live?).  I thought this was odd.  But nevertheless, it works
now and I'm happy.  Thanks for everyones help

Jeremy
[EMAIL PROTECTED]

----- Original Message -----
From: "Mel Matsuoka" <[EMAIL PROTECTED]>
To: "Carl Franks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 1:33 AM
Subject: Re: why wont images in webpages created with perl show up?


> At 08:47 AM 12/05/2001 +0000, Carl Franks wrote:
> >If you use an address such as "report.css" then the .css file must be in
the
> >same folder as the cgi script (usually "/cgi-bin").
> >If it's not use an address such as "/report.css" for the root of the web
> >server.
> >Or "/path-to-script/report.css".
>
> This is true when it comes to normal HTML sources, but when you're dealing
> with CGI, this doesn't work.
>
> Any non-CGI oriented element which needs to be accessed from a standard
> browser MUST be located outside of the cgi-bin folder. You definitely
don't
> want the .css file in the same folder as the cgi script! See my previous
> post...
>
> Aloha,
> mel
>
> --
> mel matsuoka   (vox)1.808.531.5474
> Head Geek   (fax)1.808.526.4040
> Hawaiian Image Productions [EMAIL PROTECTED]
> http://hawaiianimage.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to