Introduction to PHP for Os X by Example

Command Line PHP

Contrary to popular belief PHP is not just for web based development, it can also be used as a command line interface and in particular for shell scripting just like Perl or Python. Depending on your installation PHP may or may not have CLI (command line interface) available. The version we are using to day from Marc Liyanage’s web site is configured with CLI available when installed.