#14837 [Com]: getlastmod() returning file access time, not modification time

From: Date: Tue, 20 May 2003 11:19:28 +0000
Subject: #14837 [Com]: getlastmod() returning file access time, not modification time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40028@lists.php.net to get a copy of this message
ID: 14837 Comment by: ffyk3s at home dot se Reported By: wls at wwco dot com Status: Closed Bug Type: Directory function related Operating System: Linux Slackware, kernel 2.4.16 PHP Version: 4.1.0 New Comment: It also seems that getlastmod() doesn't work under Novell with Apache 1.3.27 and PHP-4.2.4-dev (the latest available), might be worth checking out... Previous Comments: ------------------------------------------------------------------------ [2002-01-27 01:15:00] sterling@php.net Works fine in CVS. ------------------------------------------------------------------------ [2002-01-03 22:11:20] wls at wwco dot com I've just upgraded to PHP 4.1.0 and I have code on my site (Linux/Apache) that displays when the page was last modified: <? echo(date("d-M-Y H:i:s", getlastmod() )); ?> This used to work like a champ. However, I noticed after upgrading that the date/time stamp it displays is that of the last _access_, not modification. Thus, I'm *expect* the date as shown by: $ ls -l index.php Instead, I'm *seeing* the date as shown by: $ ls -lu index.php I didn't notice it in the bug-fix list for PHP 4.1.1. I didn't see it in the PHP Reported Bug List. -Walt Stoneburner, wls@wwco.com ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14837&edit=1

« previous php.bugs (#40028) next »