<?xml version="1.0" ?>
<rss version="2.0">
	<channel>
		<title>Keith's Weblog: Comments on &quot;Weblogs.Com for RSS&quot;</title>
		<description>Keith's Weblog: Comments on &quot;Weblogs.Com for RSS&quot;, posted on October 28, 2002</description>
		<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS</link>

		<category>Programming</category>
		<language>en-us</language>
		<image>
			<link>http://keithdevens.com/weblog</link>
			<title>Keith Devens .com</title>
			<url>http://keithdevens.com/images/kbd.gif</url>
		</image>

		<item>
			<title>by Phillip Pearson</title>
			<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS#comment947</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/2984#comment947</guid>
			<pubDate>Tue, 29 Oct 2002 02:34:02 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;Or in Python:&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;import xmlrpclib; xmlrpclib.Server( 'http://rpc.weblogs.com/RPC2' ).rssUpdate( name, address )&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;That's how &lt;a href=&quot;http://www.myelin.co.nz/bzero/&quot;&gt;bzero&lt;/a&gt; does it.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Aaron of Montreal</title>
			<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS#comment949</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/2984#comment949</guid>
			<pubDate>Tue, 29 Oct 2002 05:58:30 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;&lt;a href=&quot;http://aaronland.info/weblog/archive/4679&quot;&gt;use WebService::weblogUpdates;&lt;/a&gt; WebService::weblogUpdates-&amp;gt;new(transport=&amp;gt;&amp;quot;XMLRPC&amp;quot;)-&amp;gt;rssUpdate({name=&amp;gt;&amp;quot;foo&amp;quot;,url=&amp;gt;&amp;quot;bar&amp;quot;});&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Martin</title>
			<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS#comment950</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/2984#comment950</guid>
			<pubDate>Tue, 29 Oct 2002 11:03:35 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;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'?&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Keith</title>
			<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS#comment951</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/2984#comment951</guid>
			<pubDate>Tue, 29 Oct 2002 18:41:53 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;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 &lt;em&gt;that&lt;/em&gt; 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.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Martin</title>
			<link>http://keithdevens.com/weblog/archive/2002/Oct/28/Weblogs.ComForRSS#comment952</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/2984#comment952</guid>
			<pubDate>Tue, 29 Oct 2002 20:45:41 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;/me slaps head to forehead....&lt;br /&gt;
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)&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;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.&lt;/p&gt;

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

</description>
		</item>
	</channel>
</rss>
