topical media & game development
mashup-delicious-06-example6-9-index.php / php
<?php
//bring in XML-RPC for PHP goodness
include('lib/xmlrpc.inc');
//set this to the host and location for your wordpress xmlrpc.php server
xml_rpc_server_location = '/wordpress/xmlrpc.php';
//the wordpress username and password you want to post as
wp_password = 'password';
//create the xml-rpc client object
xml_rpc_server_location, post = array();
post['description']="Hello XML-RPC world!";
//assemble the xml-rpc message
wp_username),
php_xmlrpc_encode(post),
php_xmlrpc_encode("1")
);
paramaters);
//what do we want our response to be?
response = message);
//print the response (if errno=0, the post was a sucess!)
echo "<pre>";
print_r(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.