Re: Monitor a WP website

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 3:50 PM -0400 6/24/08, Daniel Brown wrote:
On Tue, Jun 24, 2008 at 3:29 PM, tedd <tedd.sperling@xxxxxxxxx> wrote:

 Okay, then get_file_contents(), parse between the tags that would contain
 the stuff you want to monitor, hash, store that, and do what I said.

    Even if you did use the *file_get_contents()* method you mentioned
(;-P), how would you know between which tags you should parse?  Each
installation of Wordpress will likely be different, so the HTML source
will differ vastly.

    I'm not shooting holes in your logic.  I'm prodding you to get
that big brain of yours working to churn out an answer that I'm sure
is in there.


If I was actually confronted with the specifics of the problem, then I could figure it out.

If it were me, I would look at the site I was trying to scrub and figure out where the comments I'm interested in keeping tabs on are being kept -- like in between the <div id="comments"> tag and then parse on that.

Considering that every site is different, I would also record the "tab of interest", as well as the url and hash for scrubbing in the dB.

Of course, any of those data could change -- BUT -- the method would still send out an email in that event and from there you would have to re-consider what you want to do.

It's not rocket science -- but occasionally my solutions leave craters.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux