Reverted example and simply changed "before" to "after".

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302986 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-09-01 23:58:52 +00:00
parent 0334b04ba3
commit 74a8cf789c

View file

@ -211,9 +211,9 @@ if (!$stat) {
} else {
/*
* We want the access time to be 1 week
* before the current access time.
* after the current access time.
*/
$atime = strtotime('-1 week', $stat['atime']);
$atime = $stat['atime'] + 604800;
/* Touch the file */
if (!touch('some_file.txt', time(), $atime)) {