Joachim Zobel wrote:
> Hi.
> 
> I try to use the $r->mtime($upd) method to set a pages last modified to
> a database timestamp. perldoc Apache::File tells me
>  
>  "The last modified time may also be changed using this method"
> 
> My error log however says "Usage: Apache::mtime(r)", if I try.
> 
> So how do I do it? I do not want to use update_mtime. Normally mtime is
> set by SSI XBitHack full and pretty OK. I want to set it only in special
> cases. 

$r->mtime() is read only.  to update the mtime slot you want to use
$r->update_mtime(), update_mtime which is smart enough to only replace the
mtime if the time you're updating with is later than the current mtime.
you'll also want to make sure that you're doing this before you call
$r->send_http_header.

HTH

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to