@
vibbow @
shiny @
liuhaotian 我是说没有问号 对不起表达错误……
我的环境是 kangle/3.4.8 PHP5.3.3
http://www.example.com/tools/t.php?echo var_export($_SERVER);
输出的是下面这段,根本就没有问号……难道是 kangle 的坑么……
array (
'PHPRC' => '/tmp/php-test.ini',
'PHP_FCGI_MAX_REQUESTS' => '0',
'SELINUX_INIT' => 'YES',
'CONSOLE' => '/dev/console',
'TERM' => 'linux',
'INIT_VERSION' => 'sysvinit-2.86',
'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin',
'RUNLEVEL' => '3',
'runlevel' => '3',
'PWD' => '/',
'LANG' => '',
'PREVLEVEL' => 'N',
'previous' => 'N',
'HOME' => '/',
'SHLVL' => '2',
'_' => '/vhs/kangle/bin/kangle',
'FCGI_ROLE' => 'RESPONDER',
'HTTP_HOST' => '
www.example.com',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36',
'HTTP_DNT' => '1',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, sdch',
'HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.8',
'SERVER_SOFTWARE' => 'kangle/3.4.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_NAME' => '
www.example.com',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/tools/t.php',
'SCRIPT_NAME' => '/tools/t.php',
'PATH_TRANSLATED' => '/home/ftp/e/test/wwwroot/tools/t.php',
'SCRIPT_FILENAME' => '/home/ftp/e/test/wwwroot/tools/t.php',
'SERVER_ADDR' => '103.238.226.1',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '104.251.225.1',
'REMOTE_PORT' => '60943',
'DOCUMENT_ROOT' => '/home/ftp/e/test/wwwroot/',
'VH_NAME' => 'test',
'PHP_SELF' => '/tools/t.php',
'REQUEST_TIME' => 1452347062,
)