CLI, the other SAPI

Thijs Feryn (10.Mar.2011 at 13:30)
Talk at ConFoo 2011 (English - US)

Rating: 5 of 5

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
- ...

Who are you?

Claim talk

By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event.

If the claim is approved you will be able to edit the information for this talk.

Are you sure?

Comments closed.


Rating: 5 of 5

10.Mar.2011 at 15:00 by Michelangelo van Dam (277 comments)

another great talk by the great ThijsFeryn! This guy is amazing and knows really what he's talking about. Liking the way he presented the code with extra highlights to the points that require extra attention.


Rating: 5 of 5

11.Mar.2011 at 08:10 by Leonard Teo (2 comments)

This was a great talk! I learned a lot. I had no idea that you could do forking, which is going to change the way that I write some of my batch scripts. Thanks!

© 2015