October 15, 2012

A simple command-line script in PHP which allows to post contents of a file, or a text string, to a blog that supports metaWeblog API through XML-RPC. (Tested only with WordPress blogs.) Its usability lies in being easy to use it from other scripts, e.g. generating a file and automatically posting or crossposting it with auto-generated tags, categories etc.

Example of usage:

php wp_post.php -file="contents.txt" -subject="Beautiful Day" -tags="daily, photo" -categories="Forest" -blog=photo365

Click to download – wp_post-1.0.zip

Leave a Reply

Unable to load the Are You a Human PlayThru™. Please contact the site owner to report the problem.