$_SERVER
程序员文章站
2022-03-04 13:06:45
...
<?php
echo "<table border=\"1\">" ;
echo "<tr><td>" . $_SERVER [ 'argv' ] . "</td><td>argv</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'argc' ] . "</td><td>argc</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'GATEWAY_INTERFACE' ] . "</td><td>GATEWAY_INTERFACE</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_ADDR' ] . "</td><td>SERVER_ADDR</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_NAME' ] . "</td><td>SERVER_NAME</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_SOFTWARE' ] . "</td><td>SERVER_SOFTWARE</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_PROTOCOL' ] . "</td><td>SERVER_PROTOCOL</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REQUEST_METHOD' ] . "</td><td>REQUEST_METHOD</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REQUEST_TIME' ] . "</td><td>REQUEST_TIME</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'QUERY_STRING' ] . "</td><td>QUERY_STRING</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'DOCUMENT_ROOT' ] . "</td><td>DOCUMENT_ROOT</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_ACCEPT' ] . "</td><td>HTTP_ACCEPT</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_ACCEPT_CHARSET' ] . "</td><td>HTTP_ACCEPT_CHARSET</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_ACCEPT_ENCODING' ] . "</td><td>HTTP_ACCEPT_ENCODING</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_ACCEPT_LANGUAGE' ] . "</td><td>HTTP_ACCEPT_LANGUAGE</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_CONNECTION' ] . "</td><td>HTTP_CONNECTION</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_HOST' ] . "</td><td>HTTP_HOST</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_REFERER' ] . "</td><td>HTTP_REFERER</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTP_USER_AGENT' ] . "</td><td>HTTP_USER_AGENT</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'HTTPS' ] . "</td><td>HTTPS</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REMOTE_ADDR' ] . "</td><td>REMOTE_ADDR</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REMOTE_HOST' ] . "</td><td>REMOTE_HOST</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REMOTE_PORT' ] . "</td><td>REMOTE_PORT</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SCRIPT_FILENAME' ] . "</td><td>SCRIPT_FILENAME</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_ADMIN' ] . "</td><td>SERVER_ADMIN</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_PORT' ] . "</td><td>SERVER_PORT</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SERVER_SIGNATURE' ] . "</td><td>SERVER_SIGNATURE</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'PATH_TRANSLATED' ] . "</td><td>PATH_TRANSLATED</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'SCRIPT_NAME' ] . "</td><td>SCRIPT_NAME</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'REQUEST_URI' ] . "</td><td>REQUEST_URI</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'PHP_AUTH_DIGEST' ] . "</td><td>PHP_AUTH_DIGEST</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'PHP_AUTH_USER' ] . "</td><td>PHP_AUTH_USER</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'PHP_AUTH_PW' ] . "</td><td>PHP_AUTH_PW</td></tr>" ;
echo "<tr><td>" . $_SERVER [ 'AUTH_TYPE' ] . "</td><td>AUTH_TYPE</td></tr>" ;
echo "</table>"
?>
上一篇: python文件名和文件路径操作
下一篇: PHP5中图片中文验证码(下)
推荐阅读
-
SQL Server 数据库部分常用语句小结
-
Ubuntu Server 10.04修改Apache的默认目录的方法
-
FileZilla FTP Server 绿色汉化版设置教程[详细介绍]
-
Sql Server 查询外键对应的Table 的通用方法
-
CentOS随笔 - 5.CentOS7安装Sql Server 2017
-
SQL Server中关于跟踪(Trace)那点事
-
Linux登录MySQL时出现 Can't connect to local MySQL server through socket '/tmp/mysql.sock'解决方法
-
sql server 性能调优 资源等待之PAGEIOLATCH
-
SQL SERVER数据库清空日志图文教程分享
-
VS2008连接SQL Server数据库文件出错的解决方法