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

Link to comment
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.

Link to comment
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.