WordPress Blogrolls Importer – Opensource

Today I developed this tool to import wordpress blog rolls as XML document. You know when you export data from wordpress.com that doesn’t include the blog rolls data. So if you want to keep a backup of your blog rolls, you can use this tool to import your blog rolls data.. This one is developed using PHP and Curl


You can doewnload it and see the code in action here

Opensource WordPress Blogrolls Importer


The trick is lying here —


    $ch curl_init();





    //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);  // this line makes it work under https






    $buffercurl_exec ($ch); // execute the curl command



  1. The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


    XML document must have a top level element. Error processing resource ‘http://localhost/blogrollimporter/blogrollsimporter….

  2. I found the solution. The Problem was in line 33
    if ($jobstart===false) break; //quit if there is no more blogrolls

    which should be :
    if ($jobstart==false) break; //quit if there is no more blogrolls

Leave a comment

Your email address will not be published. Required fields are marked *