>
> PermanentRedirect "localhost/cgi-bin/blah.cgi"
>
This both work and doesn't work...
the correct line should be:
RedirectPermanent /index.html
http://localhost/cgi-bin/blah.cgi
the problem is that the 2nd argument of
RedirectPermanent must be an URL (not a URL
path)...what if someone is bro
> I totally agree...the only reason I installed 2.0 in
> the first place is I didn't want the trouble of
> compiling and installing the WebDAV module...which as
> it turns out, never really worked when I try to use m$
> w2k's own client...well, that belongs to another forum...
I have a question r
> Go read up on that, I highly doubt that exact
context will work. And as I
> said, I work with Apache 1.3, not 2.0. They got
some more work to do on the
> 2.0 series yet before I even think about
switching...
I totally agree...the only reason I installed 2.0 in
the first place is I didn't want t
> okay...here is another point...say this is my main
> page, I want the user to c it when it browses to
> http://localhost/
> if I am using an Apache2 for win32 server...is it
> possible for the server to call my perl script when
> the user browses to http://localhost/ (no localhost of
> course) ..
> Yeah, I think I am finally getting this...
> so in my template.html file, I write this:
> ...*
>
> and in a perl script, (I am not using sql, in fact, I
> am just reading from a text file) I read from the
> file, assign the proper html tag value* to a variable
> $quote_of_the_day*
> and then I us
Yeah, I think I am finally getting this...
so in my template.html file, I write this:
...*
and in a perl script, (I am not using sql, in fact, I
am just reading from a text file) I read from the
file, assign the proper html tag value* to a variable
$quote_of_the_day*
and then I use the line:
my $t
PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 22 46
Subject: Re: Re: dynamic update part of a table
> > > my $news = (sql query code goes here...);
> > >
> > > my $template = HTML::Template->new(
> > >
> > my $news = (sql query code goes here...);
> >
> > my $template = HTML::Template->new(
> > filename => "$Template_Dir/$tmpl_file",
> > die_on_bad_params => 0,
> > );
Sorry, guess I forgot to change $Template_Dir/$tmpl_file to
"your_html_file.tmpl".
In your table cell, put exactly this:
th
> Use HTML::Templates and a CGI script to generate the
> content of your table
> cell.
>
> Your table cell would include merely
>
>
>
> and your perl code would be something of hte sort
of:
>
> my $news = (sql query code goes here...);
>
> my $template = HTML::Template->new(
> filename => "$
ode goes here...);
>
> my $template = HTML::Template->new(
> filename => "$Template_Dir/$tmpl_file",
> die_on_bad_params => 0,
> );
>
> $template->param(NEWS => $news);
>
> - Original Message -
> From: "Ling F. Zhang" <[EMA
/$tmpl_file",
die_on_bad_params => 0,
);
$template->param(NEWS => $news);
- Original Message -
From: "Ling F. Zhang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 22 21
Subject: Re: Re: dynamic update part of a table
&g
> well if you want this to 'auto update' at the
> browser, you will want to look at how to include
> and 'expire' in the HTTP header. This will oblige
> the browser to do a 'refresh'... At which point
> your cgi will need to know how to create a new
> page - and if that means that one has to put
>
On Sunday, Jun 29, 2003, at 17:15 US/Pacific, Ling F. Zhang wrote:
so I have a webpage done nicely with table layout...
I have one cell (long one) dedicated to update the
latest news about the website...
I want to write a perl script that reads from a file
and put up formated html code into that c
so I have a webpage done nicely with table layout...
I have one cell (long one) dedicated to update the
latest news about the website...
I want to write a perl script that reads from a file
and put up formated html code into that cell.
Two questions:
1) how do I load a perl script into a table cell
14 matches
Mail list logo