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/');

comments

1. posted by Raoul at 10:10 on November 08, 2001

and i see it in the blogrtracker kist.

2. posted by Low at 10:55 on November 08, 2001

Hmmm, have to tell Bob about this... Maybe he can implement it in Pivot.

3. posted by Bob at 09:50 on November 09, 2001

The forthcoming beta will have this feature. I also used the form trick, instead of figuring out how to do it the hard way.

4. posted by pup at 16:29 on November 09, 2001

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/ ")

5. posted by pup at 16:30 on November 09, 2001

doh. watch taht wordwrap on the "CreateObject" line.

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

6. posted by pup at 16:41 on November 09, 2001

i'm also retarded. there's no parentheses on sub calls.

7. posted by milov.nl,milo,milov at 16:41 on November 09, 2001

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

8. posted by milov.nl,milo,milov at 16:42 on November 09, 2001

9. posted by milov.nl,milo,milov at 16:52 on November 09, 2001

aha. semicolons were caused by my replacing " with " - fixed for now...

10. posted by milov.nl,milo,milov at 20:53 on November 09, 2001

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

add a comment

Note: no HTML allowed. URLs starting with http:// are automatically turned into working links. Please don't spam.