Ec (2); CGI & amp; PHP transmits the data environment variable REQUEST_METHODGET to CGI: <ahref"cgi-binmyprog.exe? Lnameblow & amp; fnamejoe & quot; & gt; QUERY_STRINGPOST: By for script ec (2); script
CGI & PHP
Transmit data to CGI
========================================================== ========
Environment Variable REQUEST_METHOD
GET:
QUERY_STRING
POST: data transmitted by form
-The environmental variable CONTENT_LENGTH indicates the length.
-The CGI program reads data from stdin.
========================================================== ========
Other useful Environment Variables
========================================================== ========
Software Version of HTTP_USER_AGENT Browser
IP address of the REMOTE_ADDRESS Browser
REMOTE_HOST name of the browser
========================================================== ========
CGI output data
========================================================== ========
Non-analysis Header
-HTTP/1.0 200 OK
-Server: NCSA/1.0a6
-Content-type: text/html
-...
========================================================== ========
Content type: MIME text/css
========================================================== ========
Application
Audio
Image
Text
Video
Multipart
========================================================== ========
PHP
========================================================== ======================================
Basic syntax
========================================================== ========
1
2
This is a temporary cut" "
3