Pre-defined variables PHP
Xiao Kee:
?
$_server:http://www.php.net/manual/zh/reserved.variables.server.php
$_env:http://www.php.net/manual/zh/reserved.variables.environment.php
?
$_post, the data in $_get can be obtained through $_request, but $_request is slower than $_get and $_post.
$_file: File Upload, http://www.php.net/manual/zh/features.file-upload.post-method.php only the post upload file only data. Refer to the example of the help page #3
$_cookie and $_session are used for session control.
?
In addition, if you want to customize the values in $_server, you only need to add some commonly used variables in fastcgi_params (more for the cluster). Add the following code:
Fastcgi_param? Db4_user?? Root
Fastcgi_param? Db4_pass?? "";
Fastcgi_param? Db4_host?? localhost
Fastcgi_param? Db4_port?? 3306;
Fastcgi_param? Db4_name?? Test
?
Then the $_server["Db4_user" gets the current environment variable value root.