note 84081 added to function.touch
| From: | Jeff at osu1 dot php dot net | Date: | Thu, 26 Jun 2008 19:29:10 +0000 |
| Subject: | note 84081 added to function.touch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140851@lists.php.net to get a copy of this message | ||
I've been trying to set a filemtime into the future with touch() on PHP5.
It seems touch $time has a future limit around 1000000 seconds (11 days or so). Beyond this point it
reverts to a previous $time.
It doesn't make much sense but I could save you hours of time.
$time = time()+1500000;
touch($cachedfile,$time);
----
Server IP: 216.235.15.211
Probable Submitter: 70.49.2.28
----
Manual Page -- http://www.php.net/manual/en/function.touch.php
Edit -- https://master.php.net/note/edit/84081
Del: integrated -- https://master.php.net/note/delete/84081/integrated
Del: useless -- https://master.php.net/note/delete/84081/useless
Del: bad code -- https://master.php.net/note/delete/84081/bad+code
Del: spam -- https://master.php.net/note/delete/84081/spam
Del: non-english -- https://master.php.net/note/delete/84081/non-english
Del: in docs -- https://master.php.net/note/delete/84081/in+docs
Del: other reasons-- https://master.php.net/note/delete/84081
Reject -- https://master.php.net/note/reject/84081
Search -- https://master.php.net/manage/user-notes.php