To make it easier to distinguish between file contents and commands being run in the terminal I've added > as a shell prompt in the snippets where commands are being executed in the shell.
PHP's command line interface is a simple, powerful way to automate common tasks. New PHP programmers often do not take advantage of PHP's CLI capabilities because they only think of PHP scripts as something that must run in the browser over HTTP. A simple, gentle introduction to running PHP scripts from the command line will help raise awareness that you can accomplish powerful, admin-only tasks through simple PHP scripts without having to craft a UI or open it up to the security issues of the web.