PHPÖ®$_SERVERÓ÷¨Ïêϸ
$_SERVER['PHP_SELF'] #µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£
$_SERVER['argv'] #´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£
$_SERVER['argc'] #°üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£
$_SERVER['GATEWAY_INTERFACE'] #·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬“CGI/1.1”¡£
$_SERVER['SERVER_NAME'] #µ±Ç°ÔËÐнű¾ËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ¡£
$_SERVER['SERVER_SOFTWARE'] #·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·²¿Öиø³ö¡£
$_SERVER['SERVER_PROTOCOL'] #ÇëÇóÒ³ÃæʱͨÐÅÐÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬“HTTP/1.0”¡£
$_SERVER['REQUEST_METHOD'] #·ÃÎÊÒ³ÃæʱµÄÇëÇó·½·¨¡£ÀýÈ磺“GET”¡¢“HEAD”£¬“POST”£¬“PUT”¡£
$_SERVER['QUERY_STRING'] #²éѯ(query)µÄ×Ö·û´®¡£
$_SERVER['DOCUMENT_ROOT'] #µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå¡£
$_SERVER['HTTP_ACCEPT'] #µ±Ç°ÇëÇóµÄ Accept: Í·²¿µÄÄÚÈÝ¡£
$_SERVER['HTTP_ACCEPT_CHARSET'] #µ±Ç°ÇëÇóµÄ Accept-Charset: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“iso-8859-1,*,utf-8”¡£
$_SERVER['HTTP_ACCEPT_ENCODING'] #µ±Ç°ÇëÇóµÄ Accept-Encoding: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺&
Ïà¹ØÎĵµ£º
http://www.521000.com/bbs/dispbbs.asp?BoardID=9&ID=1236357
PHP»·¾³´î½¨
ApacheµÄ°²×°ÓëÅäÖÃ
Ò»¡¢ApacheµÄ°²×°
1.´ÓApacheµÄ¹Ù·½ÍøÕ¾ÏÂÔØ°²×°Èí¼þ£ºhttp://httpd.apache.org/download.cgi£¬Ä¿Ç°µÄ×îа汾ÊÇapache_2.2.11-win32-x86-no_ssl.msi¡£
2.´ò¿ªÎҵĵçÄÔ£¬½øÈëDÅÌ£¬ÔÚÆäÏÂн¨Ò»¸öÎļþ¼Ð£¬ÃûΪ loca ......
1¡¢Ç°ÑÔ
·ÖÒ³ÏÔʾÊÇÒ»Öַdz£³£¼ûµÄä¯ÀÀºÍÏÔʾ´óÁ¿Êý¾ÝµÄ·½·¨£¬ÊôÓÚweb±à³ÌÖÐ×î³£´¦ÀíµÄʼþÖ®Ò»¡£¶ÔÓÚweb±à³ÌµÄÀÏÊÖÀ´Ëµ£¬±àдÕâÖÖ´úÂëʵÔÚÊǺͺôÎüÒ»Ñù×Ô
È»£¬µ«ÊǶÔÓÚ³õѧÕßÀ´Ëµ£¬³£³£¶ÔÕâ¸öÎÊÌâÃþ²»×ÅÍ·Ð÷£¬Òò´ËÌصØ׫д´ËÎĶÔÕâ¸öÎÊÌâ½øÐÐÏêϸµÄ½²½â£¬Á¦ÇóÈÿ´ÍêÕâƪÎÄÕµÄÅóÓÑÔÚ¿´ÍêÒÔº ......
ÃæÏò¶ÔÏó±à³ÌµÄ·½·¨ÖУ¬ÎªÁËʵÏÖ¶ÔÏó¼äµÄËÉñîºÏ£¬ÆäÖÐÒ»ÖÖ¼òµ¥µÄÔÔò¾ÍÊǽ«Ó¦ÓòßÂÔÓ빦ÄÜʵÏÖ·ÖÀë¡£³£³£Óõ½µÄÉè¼ÆģʽÓÐfactory¡¢facadeµÈ£¬¶øµ±ÖеĺËÐıà³Ì¼¼Êõ¾ÍÊÇcallback¼¼Êõ¡£
Ëùνcallback¼¼Êõ£¬¼òµ¥µÄ˵¾ÍÊǽ«º¯ÊýµÄ×÷Ϊһ¸ö²ÎÊý´«µÝ¸øÁíÍâÒ»¸öº¯Êý£¬²¢±»¸Ãº¯ÊýËùµ÷Óá£
phpÏ£¬ÊµÏÖ¹¤³§Ä£Ê½µÄÓÐһϡ£¼¸¸ö¹Ø¼ü ......
<?php
class
CacheException
extends
Exception {}
/**
* »º´æ³éÏóÀà
*/
abstract
class
Cache_Abstract {
/**
&nbs ......