您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

预定义变量 PHP

2024/11/24 22:41:14发布15次查看
$_server: http://www.php.net/manual/zh/reserved.variables.server.php
$_env: http://www.php.net/manual/zh/reserved.variables.environment.php
$_post, $_get里的数据都可以通过$_request得到,但$_request会比$_get和$_post慢。
$_file: 文件上传,http://www.php.net/manual/zh/features.file-upload.post-method.php 只在post上传文件时才有数据。参照帮助页面的example #3
$_cookie和$_session用于会话控制。
另外,如果要自定义$_server中的值,只需要在fastcgi_params添加一些常用的变量(多用于集群)。添加下面这些代码:
fastcgi_param  db4_user   root;
fastcgi_param  db4_pass    ;
fastcgi_param  db4_host   localhost;
fastcgi_param  db4_port   3306;
fastcgi_param  db4_name   test;
那么在$_server[db4_user]得到当前环境变量值root。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product