Forum Moderators: coopster
For the first, you can use CURL [php.net], for the second, probably something like preg_match() [php.net], and finally, you may want to just output the result to the browser, or possibly send an email to yourself using mail() [php.net] if you plan to run the process automatically or semi-automatically.
Bear in mind that some webmasters may not appreciate this kind of activity--especially if you're checking many pages or very frequently--and may attempt to block the script's access to their site(s) by one means or another.
-b