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
Ïà¹ØÎĵµ£º
LAMPÕâ¸ö´ÊµÄÓÉÀ´×îÔçʼÓڵ¹úÔÓÖ¾“c't Magazine”£¬Michael KunzeÔÚ1990Äê×îÏÈ°ÑÕâЩÏîÄ¿×éºÏÔÚÒ»Æð´´ÔìÁËLAMPµÄËõд×Ö¡£ÕâЩ×é¼þËäÈ»²¢²»ÊÇ¿ª¿ªÊ¼¾ÍÉè¼ÆΪһÆðʹÓõģ¬µ«ÊÇ£¬ÕâЩ¿ªÔ´Èí¼þ¶¼¿ÉÒԺܷ½±ãµÄËæʱ»ñµÃ²¢Ãâ·Ñ»ñµÃ¡£Õâ¾Íµ¼ÖÂÁËÕâЩ×é¼þ¾³£ÔÚÒ»ÆðʹÓá£ÔÚ¹ýÈ¥µÄ¼¸ÄêÀÕâЩ×é¼þµÄ¼æÈÝÐÔ²»¶ÏÍêÉÆ£¬Ô ......
Õâ¶Îʱ¼äÔÚÒ»¸öµç×ÓÉÌÎñ¹«Ë¾´ýÔÚ£¬ËùÒÔ½Ó´¥µ½ºÜ¶àµç×ÓÉÌÎñµÄ¸ÅÄî¡£
Ò²½Ó´¥µ½ÁËÒ»¸öȫеĵç×ÓÉÌÎñģʽ¡£ÕâÀïÓÉÓÚÉæ¼°µ½Á˹«Ë¾µÄÓªÏú
²ßÂÔ·½ÃæµÄÉÌÎñ»úÃÜ£¬ËùÒÔ²»±ã¹ý¶àµÄ̸¼°¡£
²»¹ýÒ»¸öºÃµÄidea£¬×ÜÊǻṴÆðºÜ¶àµÄ²»Î·Ê§°ÜµÄ³¢ÊÔ¡£ÎҾʹÓ×î»ù
´¡µÄµç×ÓÉÌÎñ¿ªÊ¼ß·¡£
¸ÕºÃÓиöÅóÓÑ×¼±¸×öÊÖ»úµÄµç×ÓÉÌÎñ£¬ÓÃÇ°¼¸ÆªÎÄÕÂÌá ......
µÚÒ»²½£º ÏÂÔغͰ²×°PHP
php°æ±¾: php-5.2.10-Win32.zip
1.½âѹphpÎļþµ½ c:\php
2.½«phpÎļþ¼ÐÏ php.ini-dist ¸ÄÃûΪ php.ini ,È»ºóÕÒµ½extension_dir = "./" ¸ÄΪ extension_dir = "c:\php\ext" (´ó¸ÅÔÚ461ÐÐ)
3.È¥µô;extension=php_mysql.dll Ç°µÄ";"×¢ÊÍ·ûºÅ (´ó¸ÅÔÚ589ÐÐ)(Èç¹ûûÓеĻ°¿ÉÒÔ¼ÓÉÏÕâÃû»°.)
4.¸´ÖÆp ......