Reputation: 559
I have a loop
while (true) {
$time = filemtime($file);
echo date("Y m d H i s", $time) . PHP_EOL;
sleep(3);
}
Then I change the file, and PHP doesn't see modification unless I restart the loop. After restart, PHP shows new mod date. How can I overcome this?
Upvotes: 1
Views: 112