• Hello

    I have some troubles with XML-RPC (

    <?php
    include(“./wp-includes/class-IXR.php”);
    $client = new IXR_Client(‘http://lazy2wayfarer.wordpress.com/xmlrpc.php&#8217;);
    $content[‘title’] = ‘Test Draft Entry using MetaWeblog API’;
    $content[‘categories’] = array($response[1][‘categoryName’]);
    $content[‘description’] = ‘<p>Hello World!</p>’;
    if (!$client->query(‘metaWeblog.newPost’,”, ‘lazy2wayfarer’,’MYPASSWORD’, $content, false)) {
    die(‘An error occurred – ‘.$client->getErrorCode().”:”.$client->getErrorMessage());
    }
    echo $client->getResponse(); //with WordPress, will report the ID of the new post
    ?>

    I have the error

    An error occurred – -32700:parse error. not well formed

    What’s wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘XML-RPC and worpress.com’ is closed to new replies.