Home  |  Linux  | Mysql  | PHP  | XML
From:Slide Date:Thu Feb  4 18:09:51 2010
Subject:Re: How to add a last-modified field to a page header ???? ....
> Hi Slide!
>
> On Wednesday 03 Feb 2010 00:23:15 Slide wrote:
>
> > I have implemented a site using Perl, but I'm not really a Perl
> > programmer, and now I want to modify the code so that dynamic pages
> > are generated with a last-modified field to so that Google will re-
> > crawl the pages.
>
> > This is what I'm doing to generate the header now ....
>
> > print "Content-type: text/html\n\n";
>
> You shouldn't do the line above directly. Look at CGI.pm's $cgi->header()
> method or the similar facilities provided by other web-server interfaces
> (FastCGI, Plack, etc.).
>
>
>
> > So I think I need to precede that with
>
>
> CGI.pm's header should have a way to set it in the print $cgi->header(@ARGs)
> call.
>
> Regards,
>
>
> > good?
>
> --
> -----------------------------------------------------------------
> Parody on "The Fountainhead" -http://shlom.in/towtf
>
> Deletionists delete Wikipedia articles that they consider lame.
> Chuck Norris deletes deletionists whom he considers lame.
>
> Please reply to list if it's a mailing list post -http://shlom.in/reply.


[> You shouldn't do the line above directly.]

Why not? That's what I'm doing now and it works.

[ Look at CGI.pm's $cgi->header()]

I am using cgi functions for other stuff and I just checked the
documentation here .....

http://search.cpan.org/dist/CGI.pm/lib/CGI.pm#CREATING_A_STANDARD_HTTP_HEADER:

and it doesn't have a specified last-modified parameter so it doesn't
seem to help.


Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: 1-line text file with numbers, need to add to them
Re: stripped output from Net::SSH2
Modeling FIFO financial transactions in Perl
Re: Can anybody explain me what this shebang line is doing?
use with variable



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants