Re: [PHP] Monitor a WP website

2008-06-30 Thread Thiago Melo de Paula
Tedd,

very good your solution.
Thanks for sharing.

Regards,

Thiago

On Tue, Jun 24, 2008 at 6:22 PM, tedd [EMAIL PROTECTED] wrote:
 At 3:50 PM -0400 6/24/08, Daniel Brown wrote:

 On Tue, Jun 24, 2008 at 3:29 PM, tedd [EMAIL PROTECTED] 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



RE: [PHP] Monitor a WP website

2008-06-26 Thread tedd

At 4:28 PM -0500 6/24/08, Boyd, Todd M. wrote:

  -Original Message-

 From: tedd [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 4:22 PM
 To: php php
 Subject: Re: [PHP] Monitor a WP website


---8--- big snip


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

craters.

Haha! Yes! I'm going to use this (with your permission, of course).

Todd Boyd
Web Programmer


Todd:

Sure, go ahead -- it's one of my favorite sayings.

Woody Allen used to say that he never wrote his clever remarks, but 
rather they just popped out. With me it takes a bit more effort -- I 
spend a significant amount of time trying to be clever for if I 
actually was, I wouldn't need to waste the time.


In any event, I think my best saying was:

I've learned something new every day of my life, and I'm getting 
damned tried of it.


You see, I'm assembling a list of my wit for posterity and hope to 
pick one out for my tombstone. I told my wife that should I die 
before current expectations are finished, she could use:


Always on the edge of greatness

I think that does a good job of summing up my contribution.  :-)

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



Re: [PHP] Monitor a WP website

2008-06-26 Thread Daniel Brown
On Thu, Jun 26, 2008 at 9:27 AM, tedd [EMAIL PROTECTED] wrote:

 You see, I'm assembling a list of my wit for posterity and hope to pick one
 out for my tombstone.

Whereas mine will say something like /cruelWorld or /Dan or
something of the like.

Perhaps even:

?php
function dan($dateOfDeath) {
return Daniel P. Brown: 01-01-1970 - .$dateOfDeath;
}
die(dan('00-00-'));
?

With the actual dates in place, of course.  ;-P

I should go back through the Brainteaser thread from Spring 2007
and see what other kinds of geek-wit there were.  Inspiration for a
Tombstone.  Sounds like an artistic piece.  ;-P

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

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



[PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey,
Is there a way to check if a new post has been submitted on your favourite 
wordpress site?

Heres what i am trying to do:
do a fopen http://ezee.se/articles-blog/  via CRON every x minutes
if a new post has been submitted, i mail someone...

but am not just looking to do this for this one site... am thinking other WP 
sites too, but am hoping if i can get this to work on this one site.. the 
others should be pretty much the same.

Any suggestions on how to check for new posts? keep in mind most wp sites use 
some kind of url-rewriting so the formats a bit different (there are around 7 
formats if i am not mistaken)

Thanks!
R


 --
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)



  

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Eric Butera
On Tue, Jun 24, 2008 at 1:09 PM, Ryan S [EMAIL PROTECTED] wrote:
 Hey,
 Is there a way to check if a new post has been submitted on your favourite 
 wordpress site?

 Heres what i am trying to do:
 do a fopen http://ezee.se/articles-blog/  via CRON every x minutes
 if a new post has been submitted, i mail someone...

 but am not just looking to do this for this one site... am thinking other WP 
 sites too, but am hoping if i can get this to work on this one site.. the 
 others should be pretty much the same.

 Any suggestions on how to check for new posts? keep in mind most wp sites use 
 some kind of url-rewriting so the formats a bit different (there are around 7 
 formats if i am not mistaken)

 Thanks!
 R


  --
 - The faulty interface lies between the chair and the keyboard.
 - Creativity is great, but plagiarism is faster!
 - Smile, everyone loves a moron. :-)





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



Maybe you should start by trying to utilize the RSS feed.

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Stut

On 24 Jun 2008, at 18:09, Ryan S wrote:

Hey,
Is there a way to check if a new post has been submitted on your  
favourite wordpress site?


Heres what i am trying to do:
do a fopen http://ezee.se/articles-blog/  via CRON every x minutes
if a new post has been submitted, i mail someone...

but am not just looking to do this for this one site... am thinking  
other WP sites too, but am hoping if i can get this to work on this  
one site.. the others should be pretty much the same.


Any suggestions on how to check for new posts? keep in mind most wp  
sites use some kind of url-rewriting so the formats a bit different  
(there are around 7 formats if i am not mistaken)


Use the RSS feed. Easily parsed and (fairly) standard.

-Stut

--
http://stut.net/

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey Eric, Stut,

Maybe you should start by trying to utilize the RSS feed.

Went to that option at first too... but have  a quick look around, there are 
many sites that for some reason dont have this feature turned on, and for 
them... the only option i think is to read the page... unless I am missing 
something?


Cheers!
R

 Is there a way to check if a new post has been submitted on your favourite 
 wordpress site?

 Heres what i am trying to do:
 do a fopen http://ezee.se/articles-blog/  via CRON every x minutes
 if a new post has been submitted, i mail someone...


but am not just looking to do this for this one site... am thinking
other WP sites too, but am hoping if i can get this to work on this one
site.. the others should be pretty much the same.

 Any
suggestions on how to check for new posts? keep in mind most wp sites
use some kind of url-rewriting so the formats a bit different (there
are around 7 formats if i am not mistaken)


  

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Stut

On 24 Jun 2008, at 19:06, Ryan S wrote:

Hey Eric, Stut,


Maybe you should start by trying to utilize the RSS feed.


Went to that option at first too... but have  a quick look around,  
there are many sites that for some reason dont have this feature  
turned on, and for them... the only option i think is to read  
the page... unless I am missing something?


Got an example? I've never seen a WP site with RSS feeds disabled.

-Stut

--
http://stut.net/

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Nitsan Bin-Nun
RSS parsing is like anything else..
I believe you can create a database which will contain URL  customized
regex to scrape the information from the website.
I dont have other ideas, thats what just poped in my mind.

HTH,
Nitsan

On 24/06/2008, Ryan S [EMAIL PROTECTED] wrote:

 Hey Eric, Stut,

 Maybe you should start by trying to utilize the RSS feed.

 Went to that option at first too... but have  a quick look around, there
 are many sites that for some reason dont have this feature turned on, and
 for them... the only option i think is to read the page... unless I am
 missing something?


 Cheers!
 R

  Is there a way to check if a new post has been submitted on your
 favourite wordpress site?
 
  Heres what i am trying to do:
  do a fopen http://ezee.se/articles-blog/  via CRON every x minutes
  if a new post has been submitted, i mail someone...
 
 
 but am not just looking to do this for this one site... am thinking
 other WP sites too, but am hoping if i can get this to work on this one
 site.. the others should be pretty much the same.
 
  Any
 suggestions on how to check for new posts? keep in mind most wp sites
 use some kind of url-rewriting so the formats a bit different (there
 are around 7 formats if i am not mistaken)




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




Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd

At 10:09 AM -0700 6/24/08, Ryan S wrote:

Hey,
Is there a way to check if a new post has been submitted on your 
favourite wordpress site?



So, you want something to tell you if something new has been added to 
a remote site, right?


There used to be free services that did that -- I used to monitor 
competitors's web sites using such service. But, I think they 
eventually stopped the free service. Here's one site that charges:


http://www.webmetrics.com/websitemonitoring.html

Now, if you want to do this on your own, then it should be simple 
enough to use get_file_contents and put the file through a md5() 
function (or use md5_file) and store the result in a dB.


Then cron a check every so often to see if the hash has changed. If 
it has, then email you notice, rehash the site and store it in the dB.


Or, am I completely off-base in understanding what you wanted (as 
I've been told lately)?


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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: tedd [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 1:47 PM
 To: php php
 Subject: Re: [PHP] Monitor a WP website
 
 At 10:09 AM -0700 6/24/08, Ryan S wrote:
 Hey,
 Is there a way to check if a new post has been submitted on your
 favourite wordpress site?
 
 
 So, you want something to tell you if something new has been added to
 a remote site, right?
 
 There used to be free services that did that -- I used to monitor
 competitors's web sites using such service. But, I think they
 eventually stopped the free service. Here's one site that charges:
 
 http://www.webmetrics.com/websitemonitoring.html
 
 Now, if you want to do this on your own, then it should be simple
 enough to use get_file_contents and put the file through a md5()
 function (or use md5_file) and store the result in a dB.
 
 Then cron a check every so often to see if the hash has changed. If
 it has, then email you notice, rehash the site and store it in the dB.
 
 Or, am I completely off-base in understanding what you wanted (as
 I've been told lately)?

tedd,
(damnit, Outlook capitalized that for me, and I had to change it
back...)

I believe he is talking about providing such a service. Of course, I've
heard of companies that outsource their entire livelihoods and charge
their own customers out the nose for proxy.

I'm not sure if he's trying to simply determine if a change has been
made or if he is trying to notify people of the particular item that has
been posted.

Clarifications, Ryan?


Todd Boyd
Web Programmer




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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
clippity

 So, you want something to tell you if something new has been added to
 a remote site, right?
 
 There used to be free services that did that -- I used to monitor
 competitors's web sites using such service. But, I think they
 eventually stopped the free service. Here's one site that charges:
 
 http://www.webmetrics.com/websitemonitoring.html
 
 Now, if you want to do this on your own, then it should be simple
 enough to use get_file_contents and put the file through a md5()
 function (or use md5_file) and store the result in a dB.
 
 Then cron a check every so often to see if the hash has changed. If
 it has, then email you notice, rehash the site and store it in the dB.
 
 Or, am I completely off-base in understanding what you wanted (as
 I've been told lately)?


tedd,
(damnit, Outlook capitalized that for me, and I had to change it
back...)

I believe he is talking about providing such a service. Of course, I've
heard of companies that outsource their entire livelihoods and charge
their own customers out the nose for proxy.

I'm not sure if he's trying to simply determine if a change has been
made or if he is trying to notify people of the particular item that has
been posted.

Clarifications, Ryan?

/clippity


Hey,
This is strange, I didnt get Tedds message but only got to read it through 
yours.

Sorry for the mixup, yes, was thinking of making something like this and offer 
it for free, its a bit of both: what you and Tedd said.

I want to check if a new post has been published AND get the text+url of the 
post to send out to people along with the link to it.

To make matters worse, i think i am a bit confused about the feeds 
themselves... i used to work with RSS feeds from Yahoo! and others (example: 
http://www.php.net/news.rss) but they used to come via XML... but now i see a 
lot of sites using something different via feedburner (example 
http://feeds.feedburner.com/eZeeDotse) or wordpress' default feed (example: 
http://www.ballz.info/feed/) 

um... help?

:)

Cheers!
R



  

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 2:46 PM, tedd [EMAIL PROTECTED] wrote:

 Now, if you want to do this on your own, then it should be simple enough to
 use get_file_contents and put the file through a md5() function (or use
 md5_file) and store the result in a dB.

 Then cron a check every so often to see if the hash has changed. If it has,
 then email you notice, rehash the site and store it in the dB.

Tedd,

As usual, a good idea.  However, with the abundance of blogs and
the like containing Google AdWords or similar --- or even accepting
comments, changing the time of day, holding a random image, et cetera
--- the page content will change frequently.

You'd get more emails than this list got when my PostTrack system
went haywire.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Ryan S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 2:18 PM
 To: Boyd, Todd M.; tedd
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] Monitor a WP website
 
 clippity
 
  So, you want something to tell you if something new has been added
to
  a remote site, right?
 
  There used to be free services that did that -- I used to monitor
  competitors's web sites using such service. But, I think they
  eventually stopped the free service. Here's one site that charges:
 
  http://www.webmetrics.com/websitemonitoring.html
 
  Now, if you want to do this on your own, then it should be simple
  enough to use get_file_contents and put the file through a md5()
  function (or use md5_file) and store the result in a dB.
 
  Then cron a check every so often to see if the hash has changed. If
  it has, then email you notice, rehash the site and store it in the
 dB.
 
  Or, am I completely off-base in understanding what you wanted (as
  I've been told lately)?
 
 
 tedd,
 (damnit, Outlook capitalized that for me, and I had to change it
 back...)
 
 I believe he is talking about providing such a service. Of course,
I've
 heard of companies that outsource their entire livelihoods and charge
 their own customers out the nose for proxy.
 
 I'm not sure if he's trying to simply determine if a change has been
 made or if he is trying to notify people of the particular item that
 has
 been posted.
 
 Clarifications, Ryan?
 
 /clippity
 
 
 Hey,
 This is strange, I didnt get Tedds message but only got to read it
 through yours.
 
 Sorry for the mixup, yes, was thinking of making something like this
 and offer it for free, its a bit of both: what you and Tedd said.
 
 I want to check if a new post has been published AND get the text+url
 of the post to send out to people along with the link to it.
 
 To make matters worse, i think i am a bit confused about the feeds
 themselves... i used to work with RSS feeds from Yahoo! and others
 (example: http://www.php.net/news.rss) but they used to come via
XML...
 but now i see a lot of sites using something different via
feedburner
 (example http://feeds.feedburner.com/eZeeDotse) or wordpress' default
 feed (example: http://www.ballz.info/feed/)
 
 um... help?

Ryan,

If it's RSS, I think it's going to be XML regardless of the language
they're using to assemble it (Perl, PHP, ASP, etc.). I might be wrong,
but I thought that's part of what made it RSS.

I'm afraid to click on a site with the url ballz.info while I'm at
work. :D Any other WP feed examples?


Todd Boyd
Web Programmer




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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S


Got an example? I've never seen a WP site with RSS feeds disabled.


Hey Stut,

Actually, dont have an example.. :o) but i have seen this question of how to 
disable wordpress rss frequently  come up on many forums ( a quick google 
search with wordpress disable rss gives up quite a few results) so wanted a 
solution to these sites as well... however marginal they might be.

Cheers!
R



  

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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Ryan S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 2:23 PM
 To: Stut
 Cc: Eric Butera; php php
 Subject: Re: [PHP] Monitor a WP website
 
 Got an example? I've never seen a WP site with RSS feeds disabled.
 
 Hey Stut,
 
 Actually, dont have an example.. :o) but i have seen this question of
 how to disable wordpress rss frequently  come up on many forums ( a
 quick google search with wordpress disable rss gives up quite a few
 results) so wanted a solution to these sites as well... however
 marginal they might be.

Sounds like that is going to involve a lot of messy tag parsing with
cURL.


Todd Boyd
Web Programmer




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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:21 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote:

 I'm afraid to click on a site with the url ballz.info while I'm at
 work. :D Any other WP feed examples?

Heh.  I checked it out, and it's a celebrity gossip website.  In
fact, in the third picture down, Paris Hilton looks like Cyndi Lauper.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd

At 3:20 PM -0400 6/24/08, Daniel Brown wrote:

On Tue, Jun 24, 2008 at 2:46 PM, tedd [EMAIL PROTECTED] wrote:


 Now, if you want to do this on your own, then it should be simple enough to
 use get_file_contents and put the file through a md5() function (or use
 md5_file) and store the result in a dB.

 Then cron a check every so often to see if the hash has changed. If it has,
 then email you notice, rehash the site and store it in the dB.


Tedd,

As usual, a good idea.  However, with the abundance of blogs and
the like containing Google AdWords or similar --- or even accepting
comments, changing the time of day, holding a random image, et cetera
--- the page content will change frequently.


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.




You'd get more emails than this list got when my PostTrack system
went haywire.


Egads, not that!?!

I had bits all over my desktop -- it looked like an ant farm.

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
snippy
If it's RSS, I think it's going to be XML regardless of the language
they're using to assemble it (Perl, PHP, ASP, etc.). I might be wrong,
but I thought that's part of what made it RSS.

I'm afraid to click on a site with the url ballz.info while I'm at
work. :D Any other WP feed examples?
/snippy

LOL, no worries, all links that i sent are work safe... although if someone saw 
you open that their opinion of you might be lowered as its a celeb site and 
presently has super dumbo Paris H on the first page...

Pretty much the same is this one (again work safe)
http://www.ballzbollywood.com/feed/

A client runs both of these...

Cheers!
R



  

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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Ryan S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 2:34 PM
 To: Boyd, Todd M.
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] Monitor a WP website
 
 snippy
 If it's RSS, I think it's going to be XML regardless of the language
 they're using to assemble it (Perl, PHP, ASP, etc.). I might be wrong,
 but I thought that's part of what made it RSS.
 
 I'm afraid to click on a site with the url ballz.info while I'm at
 work. :D Any other WP feed examples?
 /snippy
 
 LOL, no worries, all links that i sent are work safe... although if
 someone saw you open that their opinion of you might be lowered as its
 a celeb site and presently has super dumbo Paris H on the first
page...
 
 Pretty much the same is this one (again work safe)
 http://www.ballzbollywood.com/feed/
 
 A client runs both of these...

Ryan,

That feed is indeed XML.

However, as you said, some sites *MAY* have that option turned off. (For
what reason, I have no idea.) I would suggest doing what tedd was
talking about--grab the entire file contents, and figure out the
structure of WP sites to determine where the articles are at in the
tag structure, and parse the info inside those tags.


Todd Boyd
Web Programmer




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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:29 PM, tedd [EMAIL PROTECTED] 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.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
cut
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.
/cut

So far yours has been the best solution Tedd, thanks!

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


  

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



Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
chip
Ryan,

That feed is indeed XML.
/chip


Ooookay! I think i see where my confusion was coming in opening the 
http://www.ballzbollywood.com/feed/; in FF3 automatically parses it in a 
way... as does it in IE7... but opera is giving me the raw feed and it makes 
sense again.
(Am on win vista home premium)

Cheers!
R



  

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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: Ryan S [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 2:58 PM
 To: Boyd, Todd M.
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] Monitor a WP website
 
 chip
 Ryan,
 
 That feed is indeed XML.
 /chip
 
 
 Ooookay! I think i see where my confusion was coming in opening
the
 http://www.ballzbollywood.com/feed/; in FF3 automatically parses it
in
 a way... as does it in IE7... but opera is giving me the raw feed
and
 it makes sense again.
 (Am on win vista home premium)

Correct. You are either seeing an XSL Transformation or your web browser
is formatting the RSS feed for you (probably determining it as RSS based
on namespaces, etc.).


Todd Boyd
Web Programmer




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



Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd

At 3:50 PM -0400 6/24/08, Daniel Brown wrote:

On Tue, Jun 24, 2008 at 3:29 PM, tedd [EMAIL PROTECTED] 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



RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
 -Original Message-
 From: tedd [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2008 4:22 PM
 To: php php
 Subject: Re: [PHP] Monitor a WP website

---8--- big snip

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

Haha! Yes! I'm going to use this (with your permission, of course).


Todd Boyd
Web Programmer




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