Notification when any page is modified

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kituser
Forum Newbie
Posts: 1
Joined: Thu Jan 21, 2016 11:09 pm

Notification when any page is modified

Post by kituser »

HI great day to every one.

please suggest me about the folloing issued i am facing.

I have web form which takes the user comments and save that comment in a txt file with his name.
when the user logins again and enter new comment even that is appended to the previous file.

Now what i need is if every time that .txt file is modified I should receive an alert saying file modified.

KIndly someone suggest this to me as soon as possible, as i am newbie and this is very important

Thanks to all,

MAY GOD BLESS YOU!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Notification when any page is modified

Post by Celauran »

Sounds like a database would be a better fit than text files. That aside, why not write a simple function that emails you and have it triggered when the file is written to or the database is updated?
Post Reply