Talk in English - US at ConFoo 2011
View Slides: http://www.slideshare.net/combell/cli-the-other-sapi-confoo11
Short URL: https://joind.in/talk/42e6c
Most developers use PHP in a web context and run their code via Apache.
The command line interface (CLI) is another approach to run PHP without the overhead of your webserver.
This talk not only illustrates the usage of the PHP binary, but also some use cases for which the CLI is the better tool.
I'll be touching subjects such as:
- Configuration checking
- Syntax validation
- Function and object documentation
- Batch tasks
- Reading from STDIN
- Writing to STDOUT/STDERR
- Interacting with other binaries via piping
- Process forking