Jump to content

Detect Page Changes


sphinx

Recommended Posts

Hello.

 

Would php be the right thing to use in regards to monitoring changes in html on certain pages, Basicly, I'd need it to be something like:

 

"Page last changed: 2 Days, 4 Hours, 34 Minutes and 13 Seconds ago."

 

What would I use for this?

 

Thanks

 

Not sure I understand exactly what you're trying to do.  How do you plan on going about this?  If I guessed correctly, you could make a hash of the page and check it against the old one.

Link to comment
https://forums.phpfreaks.com/topic/221056-detect-page-changes/#findComment-1144654
Share on other sites

Hello.

 

Would php be the right thing to use in regards to monitoring changes in html on certain pages, Basicly, I'd need it to be something like:

 

"Page last changed: 2 Days, 4 Hours, 34 Minutes and 13 Seconds ago."

 

What would I use for this?

 

Thanks

 

Not sure I understand exactly what you're trying to do.  How do you plan on going about this?  If I guessed correctly, you could make a hash of the page and check it against the old one.

 

That's what I mean ;)

Link to comment
https://forums.phpfreaks.com/topic/221056-detect-page-changes/#findComment-1144693
Share on other sites

Hello.

 

Would php be the right thing to use in regards to monitoring changes in html on certain pages, Basicly, I'd need it to be something like:

 

"Page last changed: 2 Days, 4 Hours, 34 Minutes and 13 Seconds ago."

 

What would I use for this?

 

Thanks

 

Not sure I understand exactly what you're trying to do.  How do you plan on going about this?  If I guessed correctly, you could make a hash of the page and check it against the old one.

 

That's what I mean ;)

 

How so?  If for the current page just use getlastmod().  If you want to do this for other pages use filemtime().  The filesystem knows when the file last changed.

Link to comment
https://forums.phpfreaks.com/topic/221056-detect-page-changes/#findComment-1144705
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.