Windows - Issues related to content changes in php monitoring folders

WBOY
Release: 2016-08-04 09:20:01
Original
1647 people have browsed it

I want to monitor the filemtime of a folder every 5 seconds, and then realize its function by comparing the similarities and differences of the filemtime twice.$filetime1 = filemtime("PATH.txt");sleep(10);$filetime2 = filemtime("Path.txt"), but in the end, the time obtained by the two filemtimes are the same, I just want I would like to ask if there is any function that can realize its real-time monitoring function. I am using a Windows system. Is there a scheduled task method similar to Linux's crontab on Windows?

Reply content:

I want to monitor the filemtime of a folder every 5 seconds, and then realize its function by comparing the similarities and differences of the two filemtimes.

$filetime1 = filemtime("PATH.txt");sleep(10);$filetime2 = filemtime("Path.txt"), but in the end, the time obtained by the two filemtimes are the same, I just want I would like to ask if there is any function that can realize its real-time monitoring function. I am using a Windows system. Is there a scheduled task method similar to Linux's crontab on Windows?

For windows, you just need to install urlcron

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!