perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: more Apache::File compat issues
Date Thu, 06 Dec 2001 03:38:51 GMT
Stas Bekman wrote:

 > There are a few nits to solve with Apache::File compat:
 >
 > the same here:


in fact this one is the opposite, the syntax in 2.0 is only
$r->set_last_modified, with no args.


 > =item $r->set_last_modified()
 >
 > This method is used to set the outgoing Last-Modified header from the
 > value returned by $r->mtime. The method checks that the specified time
 > is not in the future. In addition, using set_last_modified() is faster
 > and more concise than setting Last-Modified in the headers_out table
 > yourself.
 >
 > You may provide an optional time argument, in which case the method
 > will first call the update_mtime() to set the file's last modification
 > date. It will then set the outgoing Last-Modified header as before.
 >
 >    $r->update_mtime((stat $r->finfo)[9]);
 >    $r->set_last_modified;
 >    $r->set_last_modified((stat $r->finfo)[9]); #same as the two lines 
above



_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message