milov.nl

Interaction design • webdevelopment • web art • photography

November 2001

If all goes well, the new weblogs.com should automatically be 'pinged' when I save this entry, indicating latest update...

Yay, it worked! I simply execute the following command along with the MySQL INSERT statement (haven't yet figured out all that XML-RPC stuff):

$ping = file('http://newhome.weblogs.com/pingSiteForm?name=milov.nl&url=http://milov.nl/');



Raoul wrote on 2001/11/08:
and i see it in the blogrtracker kist.


Low wrote on 2001/11/08:
Hmmm, have to tell Bob about this... Maybe he can implement it in Pivot.


Bob wrote on 2001/11/09:
The forthcoming beta will have this feature. I also used the form trick, instead of figuring out how to do it the hard way.


pup wrote on 2001/11/09:
it's not soap or xml-rpc and it's not as simple as milov's code, but here's how to do it in asp:

Sub pingWeblogs(name, url)
Dim objXML
Dim strURL
strURL = "http://newhome.weblogs.com/pingSiteForm "
strURL = strURL & "?name=" & name
strURL = strURL & "&url=" & Server.URLEncode(url)
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXML.Open "GET", strURL, False
objXML.Send
Set objXML = Nothing
End Sub

pingWeblogs("TastyLog", "http://www.tastylog.com/ ")


pup wrote on 2001/11/09:
doh. watch taht wordwrap on the "CreateObject" line.

there's also a semicolon after the first strURL line as well. no idea why.


pup wrote on 2001/11/09:
i'm also retarded. there's no parentheses on sub calls.


milov wrote on 2001/11/09:
that semicolon is werd. something to do with my url2link function, but i don't see how.
test: http://www.semicolon.com/


milov wrote on 2001/11/09:
test2: "http://www.semicolon.com/ "
test3: 'http://www.semicolon.com/ '


milov wrote on 2001/11/09:
aha. semicolons were caused by my replacing " with " - fixed for now...


milov wrote on 2001/11/09:
Here's an XML-RPC version for PHP (no extra libraries required):
http://www.yaysoft.com/pingweblogs.php