Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP»ñÈ¡¿Í»§¶Ë¡¢·þÎñÆ÷ÐÅÏ¢

 
·þÎñÆ÷±äÁ¿ $_SERVER Ïê½â£º
1¡¢$_SESSION['PHP_SELF'] -- »ñÈ¡µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû
2¡¢$_SERVER['SERVER_PROTOCOL'] -- ÇëÇóÒ³ÃæʱͨÐÅЭÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬“HTTP/1.0”¡£
3¡¢$_SERVER['REQUEST_TIME'] -- ÇëÇó¿ªÊ¼Ê±µÄʱ¼ä´Á¡£´Ó PHP 5.1.0 ÆðÓÐЧ¡£ºÍtimeº¯ÊýЧ¹ûÒ»Ñù¡£
4¡¢$_SERVER['argv'] -- ´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£ÎÒÊÔÁËÏ£¬get·½·¨¿ÉÒԵõ½$_SERVER['argv'][0]£»post·½·¨ÎÞ·¨¸øËû¸³Öµ¡£
5¡¢$_SERVER['SERVER_NAME'] -- ·µ»Øµ±Ç°Ö÷»úÃû¡£
6¡¢$_SERVER['SERVER_SOFTWARE'] -- ·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·ÐÅÏ¢Öиø³ö¡£ ÈçMicrosoft-IIS/6.0
7¡¢$_SERVER['REQUEST_METHOD'] -- ·ÃÎÊÒ³ÃæʱµÄÇëÇó·½·¨¡£ÀýÈ磺“GET”¡¢“HEAD”£¬“POST”£¬“PUT”¡£
8¡¢$_SERVER['QUERY_STRING'] -- ²éѯ£¨query£©µÄ×Ö·û´®£¨URL ÖеÚÒ»¸öÎʺŠ? Ö®ºóµÄÄÚÈÝ£©¡£
9¡¢$_SERVER['DOCUMENT_ROOT'] -- µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå¡£ ÈçE:\server
10¡¢$_SERVER['HTTP_ACCEPT'] -- µ±Ç°ÇëÇóµÄ Accept: Í·ÐÅÏ¢µÄÄÚÈÝ¡£
11¡¢$_SERVER['HTTP_ACCEPT_CHARSET'] -- µ±Ç°ÇëÇóµÄ Accept-Charset: Í·ÐÅÏ¢µÄÄÚÈÝ¡£ÀýÈ磺“iso-8859-1,*,utf-8”¡£
12¡¢$_SERVER['HTTP_ACCEPT_ENCODING'] -- µ±Ç°ÇëÇóµÄ Accept-Encoding: Í·ÐÅÏ¢µÄÄÚÈÝ¡£ÀýÈ磺“gzip”¡£
13¡¢$_SERVER['HTTP_ACCEPT_LANGUAGE'] -- µ±Ç°ÇëÇóµÄ Accept-Language: Í·ÐÅÏ¢µÄÄÚÈÝ¡£ÀýÈ磺“en”¡£
14¡¢$_SERVER['HTTP_CONNECTION'] -- µ±Ç°ÇëÇóµÄ Connection: Í·ÐÅÏ¢µÄÄÚÈÝ¡£ÀýÈ磺“Keep-Alive”¡£
15¡¢$_SERVER['HTTP_HOST'] -- µ±Ç°ÇëÇóµÄ Host: Í·ÐÅÏ¢µÄÄÚÈÝ¡£
16¡¢$_SERVER['HTTP_REFERER'] -- Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄ URL µØÖ·¡£
17¡¢$_SERVER['HTTP_USER_AGENT'] -- ·µ»ØÓû§Ê¹ÓõÄä¯ÀÀÆ÷ÐÅÏ¢¡£Ò²¿ÉÒÔʹÓà get_browser() µÃµ½´ËÐÅÏ¢¡£
18¡¢$_SERVER['HTTPS'] -- Èç¹ûͨ¹ýhttps·ÃÎÊ£¬Ôò±»ÉèΪһ¸ö·Ç¿ÕµÄÖµ£¬·ñÔò·µ»Øoff.
19¡¢$_SERVER['REMOTE_ADDR'] -- ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄ IP µØÖ·¡£
20¡¢$_SERVER['REMOTE_HOST'] -- ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄÖ÷»úÃû¡£·´ÏòÓòÃû½âÎö»ùÓÚ¸ÃÓû§µÄ REMOTE_ADDR¡£Èç±¾µØ²âÊÔ·µ»Ø127.0.0.1
21¡¢$_SERVER['REMOTE_PORT'] -- Óû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿ڡ£ÎÒÔÚ±¾»ú²âÊÔûͨ¹ý£¬²»ÖªµÀʲôԭÒò¡£
22¡¢$_


Ïà¹ØÎĵµ£º

ÓÃÄ£°å¼¼ÊõʵÏÖPHP´úÂëºÍHMTL´úÂë·ÖÀë

1¡¢Ä£°åµÄÓÉÀ´
ÔÚûÓÐÄ£°å¼¼Êõ֮ǰ£¬Ê¹ÓÃPHP¿ª·¢³ÌÐò£¬Í¨³£¶¼ÊÇphp´úÂëºÍhtml»ì±àÔÚÒ»Æð¡£±ÈÈç˵ÐÂÎÅÁÐ±í£¬ºÜ¿ÉÄܾÍÊÇÒ»¸önewslist.phpÒ³Ã棬½á¹¹ÈçÏ£º
<?
//´ÓÊý¾Ý¿âÖжÁÈ¡³öÒªÏÔʾµÄÐÂÎżÇ¼
?>
<html>
<head>……..
</head>
<body>
<?
While ($news ......

PHP´éÍøÕ¾Ò»¸ö

ΪÁËÓ¦¸¶Êý×ÖýÌåʵ¼ùСѧÆÚ£¬ÓÃÁ½ÈýÌìµÄʱ¼ä´Ò´ÒææµØ¼ÜÆðÀ´Ò»¸öPHPÍøÕ¾¡£ÍøÕ¾ºÜ´é£¬ÀÏʦ¸øµÄ·ÖÊýÈÃËü¿´ÆðÀ´¸ü´é¡£
×öÕâ¸öÍøÕ¾µÄÄǶÎʱ¼äÕýºÃÔÚ¿´BrooksµÄÄDZ¾¿õÊÀ¾­µä¡¶ÈËÔÂÉñ»°¡·£¬Á˽âÁËÆäÖеēThe Surgical
Team”µÄ¿ª·¢Ä£Ê½£¬¾õµÃÔÚÌØÊⳡºÏÏ£¬ÕâÖÖ¿ª·¢Ä£Ê½È·Êµ»áÓµÓм«¸ßµÄ¿ª·¢Ð§ÂʺÍÍŶÓÕ½¶·Á¦¡£
Ò ......

php ʹÓÃmemcached °²×°ÅäÖÃ

 
1¡¢°²×°libeven
memcachedµÄʹÓÃÐèÒªlibevenµÄÖ§³Ö£¬ÎÒÃǵÃÏÈ×°ÉÏlibeven¡£
¹Ù·½ÍøÕ¾£ºhttp://www.monkey.org/~provos/libevent/
libevent°²×°·½Ê½±È½Ï¼òµ¥:
./configure && make
make install
¼ì²éÊÇ·ñ ÒѾ­°²×°
 ls -l /usr/local/lib/ | grep even
2¡¢°²×°memcached
¹Ù·½ÍøÕ¾£ºhttp://ww ......

PHPÄ£°åÒýÇæ

ÓÃPHPдһ¸ö×Ô¼ºµÄÄ£°åÒýÇæ
2009-07-11 09:51
SmartyÒ»Ö±±»ÈËÊÓΪÊǶàÓàµÄ¶«Î÷£¬ÎÒ¾õµÃÈÏΪSmarty¶àÓàµÄÈ˲ÅÊǶàÓàµÄ....²»ËµÕâЩÁË¡£½ñÌìÎҾͽ̴ó¼Òд¸öÄ£°åÒýÇ棬Èôó¼Ò¶¼¿ÉÒÔдһ¸öÊôÓÚ×Ô¼ºµÄÄ£°åÒýÇ棬¶øÇÒ¿´ÍêÕâƪÎÄÕÂÖ®ºó£¬Äã¶ÔSmartyµÄÈÏʶ»á¸ü½øÒ»²½µÄ¡£ÎÒµÄÄ£°åÒýÇæÃû½ÐStupid£¨"ɵ¹Ï"µÄÒâ˼£©£¬ÎÒ²»Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ