PHP $_SERVERѧϰ
³õѧPHP,¶Ô$_SERVERÕâ¸ö¶«Î÷ºÜ¸ÐÐËȤ.ÔÚÍøÉÏÕÒÁËN³¤Ê±¼ä.ÊÇÎÒÖÇÉÌÓÐÎÊÌâ? »¹ÊÇ?
ºÇºÇ.¸É´à²»Èç×Ô¼ºÒ»¸öÒ»¸ö¿´...
ÎÒµÄIDE»·¾³: XmappÊ¡×Å×Ô¼ºÅäÖÃÁË...
//¹¦ÄÜ:´òÓ¡$_SERVER->Array();
/*PHP Code Star*/
foreach ($_SERVER as $key => $value)
{
echo $key.":".$value."<br>";
}
/*PHP Code End*/
//ÒÔÏ´ø¶¼²»ÖªµÀÊǸÉÂïÓõÄ.ÂýÂý¿´...
AuthDigestEnableQueryStringHack:On
HTTP_ACCEPT:*/*
HTTP_ACCEPT_LANGUAGE:zh-cn //ÏÔʾä¯ÀÀÆ÷°æ±¾?
HTTP_UA_CPU:x86
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) //ÏÔʾä¯ÀÀÆ÷°æ±¾?
HTTP_HOST:localhost //PHP»ñÈ¡Ö÷»ú·¾¶
HTTP_CONNECTION:Keep-Alive
HTTP_COOKIE:sid=ca55choSI%252BIj9fhFbdXv66pWalTp73LPveTd0EvrrT00lCqYCvi%252Fdih9acwWFkWuOJKdIf5PM4pmtw; uchome_auth=91c0L8b7VtmBvqB7DynICPyLxYBxuMiPbfw%2FggPs0tGd%2FmisuYCK6SUs0Ro43p5CCRlU%2F3BxPYLnG5yTmIV1 //¹þ¹þ $_CookieµÄArray(),Õâ´ÎÎÒ¿´ÄãÍùÄĶùÅÜ!
PATH:C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
SystemRoot:C:\WINDOWS //Õâ¸öºÜΣÏÕ
COMSPEC:C:\WINDOWS\system32\cmd.exe //Õâ¸ö¸üΣÏÕ!
PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
WINDIR:C:\WINDOWS
SERVER_SIGNATURE:
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6 Server at localhost Port 80 //Õâ¸ö×îºÃ²»Òþ²Øµô
SERVER_SOFTWARE:Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6 //ͬÑùÒ²ÒªÒþ²Øµô
//ÒÔϾÍÊÇÖصãÁË!ÂýÂý¿Ð!!
SERVER_NAME:localhost
SERVER_ADDR:127.0.0.1
SERVER_PORT:80
REMOTE_ADDR:127.0.0.1
DOCUMENT_ROOT:E:/xampp/htdocs
SERVER_ADMIN:admin@localhost
SCRIPT_FILENAME:E:/xampp/htdocs/mysite/index.php
REMOTE_PORT:4858
GATEWAY_INTERFACE:CGI/1.1
SERVER_PROTOCOL:HTTP/1.1
REQUEST_METHOD:GET
QUERY_STRING:
REQUEST_URI:/mysite/
SCRIPT_NAME:/mysite/index.php
PHP_SELF:/mysite/index.php
REQUEST_TIME:1252069158
argv:Array
argc:0
Ïà¹ØÎĵµ£º
ÈçºÎÔÚPHPÏÂÔØÎļþÃûÖнâ¾öÂÒÂë
CND8ѧԺ
¡¡PHP½Ì³Ì
¡¡·¢²¼ÈÕÆÚ£º2009Äê05ÔÂ23ÈÕ
ͨ¹ý°ÑContent-TypeÉèÖÃΪapplication/octet-stream£¬¿ÉÒ԰Ѷ¯Ì¬Éú³ÉµÄÄÚÈݵ±×÷ÎļþÀ´ÏÂÔØ£¬ÏàÐÅÕâ¸ö´ó¼Ò¶¼»á¡£ÄÇôÓÃContent-DispositionÉèÖÃÏÂÔصÄÎļþÃû£¬Õâ¸öÒ²Óв»ÉÙÈËÖªµÀ°É¡£»ù±¾ÉÏ£¬ÏÂÔسÌÐò¶¼ÊÇÕâôдµÄ£º
< ......
<?php
$n = array('13','14','55','10','54','2','79','106','89','90','22','60','111','77777','-110','-10','123');
function partition($n,$left,$right)
{
global $n;
$pivot = $n[$left];
$lo=$left;
$hi=$right+1;
while($lo+1!=$hi) {
if($n[$lo+1]<$pivot)
$lo++;
else if($n[$hi-1] ......
PhpµÄ½Å±¾¿éÓйصķûºÅ£º
1,XML·ç¸ñ£ºÅ£È˼«¶ÈÍƼöµÄÓ÷¨<?php …?>¡£
2,¼ò¶Ì·ç¸ñ:<?...?>×î¼òµ¥£¬×ñÑSGML(±ê׼ͨÓñê¼ÇÓïÑÔ)´¦Àí˵Ã÷µÄ·ç¸ñ¡£ÒªÏëÓÃËü£¬Ò»¶¨Òª¿ªÆôshort_open_tagÑ¡Ï»òÕßÆôÓö̱ê¼ÇµÄÑ¡Ïî±àÒëphp¡£(³õѧÕß¿´ÕÅÀÏʦÊÓƵʱ£¬¾ÍÈÝÒ×·¸Ã»ÓпªÆô¶Ì±ê¼ÇµÄ´íÎó¡£¹úÍâÅ£È˲»ÍƼö£¬µ«ÏÖÔÚ¹ú ......
×î½üÁ½ÌìÏîÄ¿ÐèÒª£¬ÓÉÓÚ·þÎñÆ÷ÕýÔÚ¿ª·¢£¬¿Í»§¶Ë½ø¶ÈÉÔ¿ìһЩ£¬Ã»ÓзþÎñÆ÷½øÐÐÁªµ÷¡£Òò´ËÎÒÖزپÉÒµ£¬ÓÃPHP¿ìËÙµÄдÁËһЩwebÒ³Ã棬ËãÊǵ±²âÊÔ×®³ÌÐòÁË£¬Æ߰˸öweb½Ó¿Ú£¬»ù±¾ÉÏ5µ½6¸öСʱ¸ã¶¨ÁË¡£ÓÉÓÚµ±Ç°µÄ·þÎñÆ÷ÐèÒªÓëÆäËû·þÎñÆ÷½øÐжԽӣ¬Òò´ËдµÄÕâ¸öweb·þÎñ»¹ÐèÒª³äµ±client½ÇÉ«£¬ÏòÆäËû·þÎñÆ÷·¢ËÍÇëÇó¡£
ÔÚÍøÉÏËÑÁËÒ» ......