PHP – Remote post on WordPress using cUrl
Here's a code snippet function for remote posting on WordPress blogs I've made for my usage. It use XML-RPC and cUrl to publish on your blog.
Hope it'll help you.
-
< ?php
-
-
/**
-
* Remote post on WordPress function
-
*
-
* @date 2010-10-22
-
* @author David Ansermot
-
* @url http://v2.ansermot.ch
-
*
-
* @param string $url: Your blog's url
-
* @param string $login: Your blog's login
-
* @param string $pass: Your blog's password
-
* @param string $postTitle: The post's title
-
* @param string $postCats: A comma separated list of categories's ids
-
* @param string $postContent: The post's content
-
* @return bool
-
*/
-
function curlRemotePostToWordPress($url, $login, $pass, $postTitle, $postCats, $postContent) {
-
-
// Remote post url
-
-
// Categories for the post
-
-
// Post xml
-
$xml = ''.$postTitle.'
-
-
< ![CDATA[ '.$postContent.' ] ]>';
-
-
// Build request
-
-
// Send the request
-
try {
-
-
-
// cUrl configuration
-
-
// Execution
-
-
return true;
-
-
} catch (Exception $e) {
-
-
return false;
-
-
}
-
}
-
-
?>
Joomla 1.6 Beta 3!
The Joomla Project is proud to announce the immediate availability of Joomla 1.6 beta 3 (download). IMPORTANT NOTE: This is a beta version and is not intended to run any type of production site. It is intended to be used for evaluation purposes only.
Since the Joomla 1.6 beta 2 release on May 31, we have fixed approximately 102 issues in the tracker. Much of this progress is directly related to the stepped up efforts of the Joomla! Bug Squad. Thanks for all your hard work in bringing us one increment closer to stable!
See the CHANGELOG for details of what has been changed in this release.
What's next?
This is the third in our series of continuous betas. Beta 4 will be released on June 28, 2010.
We All Like to Reblog
Have you ever come across a blog post that you enjoyed so much you wanted to easily share it with the readers of your own blog? Sure, you can copy and paste the link and perhaps even a snippet of text with your own comments, but overall it’s not a particularly enjoyable experience. We wanted to change this and make sharing other posts with your readers as easy as posting to your blog.
WordPress new Theme : Paperpunch
A new theme as been released for WordPress. It's named "Paperpunch"

Read full post
Download theme
