How a web server interface with PHP

I want to handle http requests through another web server or my own written server in the future.

I want to understand how to properly provide php with request data.

  • in what form should the request data be provided
  • how data is provided by php, via stdin or otherwise
  • how php processes the received request data subsequently, any additional actions necessary to fill in the variables $ _SERVER, etc.
+5
source share
2 answers

. - PHP CGI. , php, POST stdin PHP stdout.

PHP $_SERVER: , PHP_SELF PHP_AUTH_USER .., . - (, HTTP- HTTP_ * env-).

+4

php mod_php, C, , , .

0

All Articles