CLI PHP5 – WordPress Blogger – if you use Wordpress, gives you a tool to add blog entries from the command line. Be warned has some unique requirements;
Total lines of code < 100.
Related posts:
- Interactive CLI password prompt in PHP Just a quick tip, since I spent a good hour...
- Build Your Own WordPress Themes the Easy Way A custom WordPress theme is a great service to sell...
- More than 10 “Must Have” WordPress Plugins With these plugins you tantalize your readers into spending more...
- Use Whatever Font You Please On WordPress Jennifer shows you how to use the Cufon WordPress plugin...
- Want To Be A SitePoint Blogger? How would you like the opportunity to write daily on...







Might also mention that because of the readline requirement, it will not run on Windows
July 6th, 2004 at 6:44 pm
I’ll be fixing up some stuff this week. Making it more interactive in one mode… and also silent in another (to allow for use in pipes etc)
July 6th, 2004 at 7:23 pm
readline…. yeah the silent mode won’t use readline. Better fix that up!!
July 6th, 2004 at 11:32 pm
This works for Windows.
if(!function_exists('readline')) { //Win32 define('CMD_STDIN', fopen("php://stdin", "r+")); define('CMD_STDOUT', fopen("php://stdout", "r+")); function readline ($str=null) { if ($str!=null) fwrite(CMD_STDOUT, $str); return trim (fgets (CMD_STDIN, 255)); } }July 8th, 2004 at 8:17 am
have updated the tool to use WordPress’s XML-RPC capability. Still uses readline (and now XML-RPC instead of cURL), but check out Andrew’s Windows work around
July 9th, 2004 at 6:31 am