|
Posted by Gordon Burditt on 07/20/05 22:59
>Are these passed by the webserver to PHP using
>commandline arguments or by environment variable?
If PHP is run as an Apache module, it's done via some kind of
internal interface, and unless you're writing your own modules,
you shouldn't need to care.
If PHP is run as a CGI, it's done by the interface defined by CGI:
GET variables show up in environment variables (the CGI has to
separate them), and PUT variables are available on stdin (again,
the CGI has to separate them). Environment variables indicate
whether this is GET or PUT and how much input is available on
stdin.
If PHP is run from the command line, the variables are generally
not passed at all, and there may be no web server involved at all.
Gordon L. Burditt
[Back to original message]
|