Posting to wordpress using php cli and xmlrpc
A reader once asked me if I could build a command line tool which takes title from one file, and content from another file to create wordpress post. I tried, which finally gave an outline to this script. I dont think that this is very high fly, but for those whom the xmlrpc is mumbo, this might be somthing worth looking into.
The requests are encoded into xml format using xmlrpc_encode_request, and responses are decoded using xmlrpc_decode. The response is tested using xmlrpc_is_fault. The transport is handled using curl methods. Sorry I am poor at code commenting.
Those who are trying the code, please dont forget to check and customize the configuration which is on line 129 for the login details, and line 26-33, where the categories are cached into the system.
Download the files: XML WpPost (908)