perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
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 

Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker      mod_perl Guide

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message