Hi all. Here's my situation and how I'm solving it. Please let me know if my methods look good or if there is a better way of doing it.
A local business around here has a drawing each day where they pick some customers' names to win something. The winners' names are posted on a web page each day. I wanted to automate getting the results, specifically if my name is on the list.
I wrote up a PHP script that does the following: First it fetches the content of the page using curl_exec. Then it searches those results using stristr for the name(s) that I'm interested in. If it finds them, it appends the name(s) to a string of winners and sets a flag to true. After checking for the names, if the flag is true, I use mail to send the results, including the names, to my email. I have a cron job set up to wget the page with the script every morning.
Is that pretty much a reasonable way of doing it, or would there be a better way?