PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
There's nothing special about writing php-cli scripts except that parameters come from $_SERVER['argv'] instead of $_REQUEST.
"Using PHP from the command line" in the manual discusses CLI in details.