[NTLUG:Discuss] Linux, Perl, CGI, Background attribute...
Fred James
fredjame at concentric.net
Wed Jul 18 08:40:00 CDT 2001
I don't believe it is a pathing issue because:
(1) absolute path is refused on permissions
(2) all other relative paths work
I don't believe the "directory temporarily changes to /cgi-bin/", but
that is strictly from observation and we know that can be wrong.
I have been thinking about the permissions issue though, and I shall
attempt to explore that today.
"Gregory L. Camp" wrote:
>
> It still might be a pathing issue. You could verify that by using an
> absolute path. I'm just wondering if when you call the CGI script then your
> directory temporarily changes to /cgi-bin/ or whatever (and that would break
> a relative path).
>
> Greg
>
> > -----Original Message-----
> > From: Fred James [mailto:fredjame at concentric.net]
> > Sent: Tuesday, July 17, 2001 5:38 PM
> > To: discuss at ntlug.org
> > Subject: Re: [NTLUG:Discuss] Linux, Perl, CGI, Background attribute...
> >
> >
> > The relative path is required due to ownership of files below
> > "document
> > root", but the relative path is in relationship to the caller in any
> > case.
> > Is this an indication of a possible set up issue in the (Apache) web
> > server?
> > Remember - It works form straight HTML, but not in HTML generated by
> > *.cgi (with or without CGI.pm) - of course the image file is currently
> > in the same directory as the straight HTML file.
> >
> > Greg Hewett wrote:
> > >
> > > You might want to try an absolute path to you image.
> > >
> > > <body background="/images/image.jpg">
> > >
> > > When you start using the "../" you have to be very
> > careful. the relational
> > > path will be the relational path from your cgi not the page
> > that called it.
> > >
> > > On Tue, Jul 17, 2001 at 04:07:57PM -0500, Fred James wrote:
> > > > Page source looks like this:
> > > > (code omitted)
> > > > <BODY BACKGROUND="../path/image.jpg">
> > > > (code omitted)
> > > > and it doesn't work, though the this one for color does:
> > > > (code omitted)
> > > > <BODY BGCOLOR="orange">
> > > > (code omitted)
> > > >
> > > > MadHat wrote:
> > > > >
> > > > > At 12:55 PM 7/17/2001 -0500, you wrote:
> > > > > >The HTML BODY tag attribute BACKGROUND, points to the
> > url of a graphic
> > > > > >file to use as the (tiled) background for the page.
> > > > > >
> > > > > ><BODY BACKGROUND="url">
> > > > > >
> > > > > >I have this to working in an *.HTML file, But I have
> > not been able to do
> > > > > >so in a Perl *.cgi file, with or without the CGI.pm
> > > > > >
> > > > > >Any pointers would be appreciated.
> > > > >
> > > > > when you views the source what do you see? How are you
> > trying to use it in
> > > > > the CGI?
> > > > >
> > > > > print "<BODY BACKGROUND=\"url\">\n";
> > > > >
> > > > > or
> > > > >
> > > > > use CGI qw/:standard/;
> > > > > print start_html(-title=>'test page',
> > > > > -body=>{-background=>'url',
> > > > > -bgcolor=>'white'});
> > > > >
> > > > > >--
> > > > > >...make every program a filter...
> > > > > >_______________________________________________
> > > > > >http://www.ntlug.org/mailman/listinfo/discuss
> > > > >
> > > > > --
> > > > > MadHat at unspecific.com
> > > > >
> > > > > _______________________________________________
> > > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > >
> > > > --
> > > > ...make every program a filter...
> > > > _______________________________________________
> > > > http://www.ntlug.org/mailman/listinfo/discuss
> > > _______________________________________________
> > > http://www.ntlug.org/mailman/listinfo/discuss
> >
> > --
> > ...make every program a filter...
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
> >
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
--
...make every program a filter...
More information about the Discuss
mailing list