KBD

Keith Devens .com

Tuesday, February 9, 2010 Flag waving
Anything is possible if you don't know what you're talking about. – unknown
← SpacesTo whom it may concern →

Daily link icon Monday, October 28, 2002

Weblogs.Com for RSS

Dave Winer: Weblogs.Com for RSS.

Weblogs.Com is a service that tells you, both in HTML and XML, which weblogs have changed in the last three hours. Now, for the first time, that service has been extended to RSS news feeds. You can easily find out which feeds have changed in the last three hours. This could be the key to improving the efficiency of news aggregators, as the market grows.

Here's a one-line script that runs in Radio that notifies weblogs.com that InfoWorld's RSS feed has updated.

["xmlrpc://rpc.weblogs.com/RPC2"].rssUpdate ("InfoWorld", "http://www.infoworld.com/rss/news.rdf")

Here's a one line PHP script that uses my library Smiley winking

XMLRPC_request("rpc.weblogs.com", "/RPC2", "rssUpdate", array($name, $address))
← SpacesTo whom it may concern →

Comments XML gif

Phillip Pearson (http://www.pycs.net/devlog/) wrote:

Or in Python:

import xmlrpclib; xmlrpclib.Server( 'http://rpc.weblogs.com/RPC2' ).rssUpdate( name, address )

That's how bzero does it.

∴ Phillip Pearson | 28-Oct-2002 8:34pm est | http://www.pycs.net/devlog/ | #947

Aaron of Montreal (http://www.aaronland.net) wrote:

use WebService::weblogUpdates; WebService::weblogUpdates->new(transport=>"XMLRPC")->rssUpdate({name=>"foo",url=>"bar"});

∴ Aaron of Montreal | 28-Oct-2002 11:58pm est | http://www.aaronland.net | #949

Martin (http://traumwind.tierpfad.de/blog/) wrote:

Cool man, it works like a charm. But now there's only one gripe with this: the post takes quite a while longer to return to the user, as the PHP needs to go to weblogs.com first... Any ideas how one could do this 'asynchronously'?

∴ Martin | 29-Oct-2002 5:03am est | http://traumwind.tierpfad.de/blog/ | #950

Keith (http://www.keithdevens.com/) wrote:

Yeah, I wish I knew. If my stuff was in Java I'd spawn off a thread and forget about it. Best I can imagine is to create a separate file to do my pinging, and call that file with a system call, which, depending on which way I call it from PHP, can run asynchronously. However, then you don't get to see the ping output. It really does take a while to ping, unfortunately, and I haven't come up with a good solution.

Keith | 29-Oct-2002 12:41pm est | http://www.keithdevens.com/ | #951

Martin (http://traumwind.tierpfad.de/blog/) wrote:

/me slaps head to forehead....
I had something like this up and running some time ago, to implement a kind of cron w/o access to actual cron-jobs (PHP only account w/o shell)

The main idea was to simply open an http-request to a given PHP script, and simply NOT wait for it to return. That script of course would need to write messages to some kind of logfile for later inspecion.

The relevant code looks like this:
<pre>function dojob ($url) {
// $url needs to be fully specified http:// type url
global $log;
$fjob = @fopen($url,"r");
if (! $fjob) { fwrite ($log, "\tfailed $url\n"); }
else { fwrite ($log, "\tsuccess $url\n"); }
}
</pre>
If anybody is interested I could publish the whole of dadaCron.php wgich is not really anything...

∴ Martin | 29-Oct-2002 2:45pm est | http://traumwind.tierpfad.de/blog/ | #952

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

February 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 1 posts

Recent comments XML

new⇒Why does Visual Studio suck ASS?

Look at '#pragma once' to get files​included only once....

Thomas Minor: Feb 8, 1:19pm

Generated in about 0.189s.

(Used 8 db queries)