Hosting Problems and How to Restore Lost Pings

I just checked in here and found the last couple days of comments missing. Luckily, they were stored in gmail and I think I restored them all. But if you left a comment recently and it isn’t here now, it’s not that I don’t like you (just that my host apparently doesn’t like me).

A couple of the comments were pings and I wouldn’t have know how to get them back if I hadn’t messed around with pinging for my WP_PingPreserver plugin, so I figured it might be useful to put up a quick bit on how to recover lost pings. You’ll need to know a little bit about php to use it I guess but if you don’t know php and need to restore some pings let me know and I’ll make up a quick plugin. So here’s some simple (i.e. probably not perfectly to specifications) php code to restore lost pings on WordPress:

[php] $linkingPost $myPost “; curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $output=curl_exec($ch); curl_close($ch); echo $output; ?> [/php]

It’s not very pretty but it gets the job done. Just replace the top three lines with the appropriate links, save it to your host and visit the file in your browser. Hopefully your host won’t mysteriously lose your pings but if they do now you know what to do.