The CLI version of PHP is quite similar to the CGI version, upon which it was
once based. The main difference lies in all the web server integration, which is
really what CGI is about. With CLI, PHP is trimmed down to the very basics,
and imports no GET or POST form variables, outputs no MIME headers in the
output, and generally does none of the behind-the-scenes that other SAPI
implementations do. (more…)
