Thoughts

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
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Thoughts

Post by kippy »

Any thoughts on a script that monitors a site (or web page) waiting for a specific content to display? Would like the script to monitor a site (or page) every n minutes looking for a set keyword and returning if something new is found....

thoughts?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

cron.
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

as far as how to accomplish the monitor, would I want to use curl and store data in a file?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

kippy wrote:[...] and store data in a file?
What?
Why?
What data?
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

I have someone that wants to monitor a craigslist page or more for a specific item or brand. They want the script to alert them when a new item or brand item hits the site.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You will need to determine some way of deciding if a change to the page has been made that you wish to alert. Whether that entails storage into a file or some other storage is your choice.

cURL is one of multiple ways of accessing remote pages.
Post Reply