K
K
Kirill Gorelov2015-10-20 16:58:42
PHP
Kirill Gorelov, 2015-10-20 16:58:42

How to track a file change?

Hello.
How to track a file change?
And if it has changed let me know.
Preferably php or js.
That is, I set the path to the file and that's it. Then the script works by itself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MetaDone, 2015-10-20
@MetaDone

php.net/manual/ru/function.filemtime.php

S
Sergey, 2015-10-20
Protko @Fesor

inotify, available for php and js. It will be easier to implement on js (socket-io, daemon)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question