Prompt when file is changed using PHP or JavaScript

-4

I have a form that saves the data to a .txt file. I would like to know if you can create a warning to know when new content is registered in this .txt through PHP .

    
asked by anonymous 26.08.2018 / 05:11

1 answer

0

What you can do is use a Linux Cron and run it every x minutes or seconds and then you check the file. You can do this manually or use some component like this: link

OR

If this txt is edited by some other program, you can create an API with PHP where the program that edited the txt sends a message saying that it has edited the file.

    
03.09.2018 / 06:22