Monitoring a URL on another server...
Posted: Fri Aug 01, 2008 9:47 am
I'd like to run a script that checks various URL's and alert me if a change has been made.
I would seem easy, I could use filemtime() or filesize() and compare that vs. info stored in my database for that specific URL. I guess either works great if comparing statistics for a static page ... but what can I do to get a value for comparison if it's a dynamic page? (Like http://Domain.com/page.cfm?id=12345)
Any way to compare? OR can I use my script to 'capture' the contents and "look" for a specific string within the page? If so - how?
Thanks in advance for whatever you can suggest!
Jeff
I would seem easy, I could use filemtime() or filesize() and compare that vs. info stored in my database for that specific URL. I guess either works great if comparing statistics for a static page ... but what can I do to get a value for comparison if it's a dynamic page? (Like http://Domain.com/page.cfm?id=12345)
Any way to compare? OR can I use my script to 'capture' the contents and "look" for a specific string within the page? If so - how?
Thanks in advance for whatever you can suggest!
Jeff