Re: Monitor a WP website
| From: | Thiago Melo de Paula | Date: | Mon, 30 Jun 2008 13:09:03 +0000 |
| Subject: | Re: Monitor a WP website | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276123@lists.php.net to get a copy of this message | ||
Tedd,
very good your solution.
Thanks for sharing.
Regards,
Thiago
On Tue, Jun 24, 2008 at 6:22 PM, tedd <tedd.sperling@gmail.com> wrote:
> At 3:50 PM -0400 6/24/08, Daniel Brown wrote:
>>
>> On Tue, Jun 24, 2008 at 3:29 PM, tedd <tedd.sperling@gmail.com> 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