PHP »·¾³±äÁ¿
ÔÚPHPÍøÕ¾¿ª·¢ÖУ¬ÎªÁËÂú×ãÍøÕ¾µÄÐèÒª£¬Ê±³£ÐèÒª¶ÔPHP»·¾³±äÁ¿½øÐÐÉèÖúÍÓ¦Óã¬ÔÚÐéÄâÖ÷»ú»·¾³Ï£¬ÓÐʱÎÒÃǸüÐèҪͨ¹ýPHP»·¾³±äÁ¿²Ù×÷º¯ÊýÀ´¶ÔPHP»·¾³±äÁ¿Öµ½øÐÐÉèÖá£Îª´ËÎÒÃÇÓбØÒª¶ÔPHP»·¾³±äÁ¿ÏÈÓÐËùÊìϤ¡£½ñÌìºÍ´ó¼Ò·ÖÏíPHP»·¾³±äÁ¿$_SERVERºÍPHPϵͳ³£Á¿µÄ²¿·ÖÏêϸ˵Ã÷¡£
¡¡¡¡PHP»·¾³±äÁ¿Ö÷ÒªÓÐ$GLOBALS[]¡¢$_SERVER[]¡¢$_GET[]¡¢$_POST[]¡¢$_COOKIE[]¡¢$_FILES[]¡¢$_ENV[]¡¢$_REQUEST[]¡¢$_SESSION[]¡£$_GETºÍ$_POSTÖ÷ÒªÕë¶ÔFORM±íµ¥Ìá½»µÄÊý¾Ý£¬$_COOKIEºÍ$_SESSIONÖ÷ÒªÕë¶Ô¿Í»§¶ËÓÎÀÀÆ÷ºÍ·þÎñÆ÷¶Ë»á»°Êý¾Ý¡£$_FILESÖ÷ÒªÕë¶ÔÎļþÉÏ´«Ê±Ìá½»µÄÊý¾Ý£¬$_REQUESTÖ÷ÒªÕë¶ÔÌá½»±íµ¥ÖÐËùÓÐÇëÇóÊý×飬°üÀ¨$_GET¡¢$_POST¡¢$_COOKIEÖеÄËùÓÐÄÚÈÝ£¬Äã¿ÉÒÔͨ¹ýprint_rº¯Êý·Ö±ðÊä³ö$_REQUEST»òÕß$_COOKIEµÈ½øÐбȽϡ£PHP»·¾³ÈçºÎ´î½¨£¿
PHP»·¾³±äÁ¿$_SERVER
¡¡¡¡ÊÇÒ»¸ö°üº¬·þÎñÆ÷¶ËÏà¹ØÐÅÏ¢µÄPHPÈ«¾Ö»·¾³±äÁ¿£¬ÔÚPHP4.1.0֮ǰµÄ°æ±¾Ê¹ÓÃ$HTTP_SERVER_VARS¡£¸ü¶àÐÅÏ¢¿ÉÒԲο¼ÕâÀï¡£
¡¡¡¡$_SERVER['PHP_SELF'] µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£ÔÚFORM±íµ¥ÖУ¬ÈçÖ´ÐÐÎļþÊDZ¾Éí£¬Äã¿ÉÒÔÔÚACTIONÖÐʹÓÃ$_SERVER['PHP_SELF']£¬ºÃ´¦Êǵ±Ö´ÐÐÎļþÃûÓб䶯ʱ¿ÉÒÔ²»È¥Æµ·±Ìæ»»ACTIONÖеÄÎļþÃû¡£
¡¡¡¡$_SERVER['SERVER_NAME'] µ±Ç°ÔËÐеÄPHP³ÌÐòËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ¡£
¡¡¡¡$_SERVER['REQUEST_METHOD'] ·ÃÎÊÒ³ÃæÊ±µÄÇëÇó·½·¨£¬¼´GET¡¢HEAD¡¢POST¡¢PUT¡£
¡¡¡¡$_SERVER['DOCUMENT_ROOT'] µ±Ç°ÔËÐеÄPHP³ÌÐòËùÔÚµÄÎĵµ¸ùĿ¼¡£Ò²¾ÍÊÇPHP.INIÎļþÖе͍Òå¡£
¡¡¡¡$_SERVER['HTTP_REFERER'] Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄURLµØÖ·¡£ÔÚÒ³ÃæÌø×ª¹¦ÄÜÖзdz£ÓÐÓá£
¡¡¡¡$_SERVER['REMOTE_ADDR'] ÕýÔÚä¯ÀÀµ±Ç°Ò³Ãæ·ÃÎÊÕßµÄIPµØÖ·¡£
¡¡¡¡$_SERVER['REMOTE_HOST'] ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄÖ÷»úÃû¡£
¡¡¡¡$_SERVER['REMOTE_PORT'] ÕýÔÚÓÎÀÀµÄÓû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿ڡ£
¡¡¡¡$_SERVER['SCRIPT_FILENAME'] µ±Ç°Ö´Ðнű¾µÄ¾ø¶Ô·¾¶Ãû¡£
¡¡¡¡$_SERVER['SERVER_PORT'] ·þÎñÆ÷ËùʹÓõĶ˿Ú
¡¡¡¡$_SERVER['SCRIPT_NAME'] °üº¬µ±Ç°½Å±¾µÄ·¾¶¡£ÕâÔÚÒ³ÃæÐèÒªÖ¸Ïò×Ô¼ºÊ±·Ç³£ÓÐÓá£
¡¡¡¡$_SERVER['REQUEST_URI'] ·ÃÎÊ´ËÒ³ÃæËùÐèµÄURI¡£Èç“/index.html”¡£
¡¡¡¡$_SERVER['PHP_AUTH_USER'] Ó¦ÓÃÔÚHTTPÓû§µÇ¼ÈÏÖ¤¹¦ÄÜÖУ¬Õâ¸ö±äÁ¿ÊÇÓû§ÊäÈëµÄÓû§Ãû¡£
¡¡¡¡$_SERVER['PHP_AUTH_PW'] Ó¦ÓÃÔÚHTTPÓû§µÇ¼ÈÏÖ¤¹¦ÄÜÖУ¬Õâ¸ö±äÁ¿±ãÊÇÓû§ÊäÈëµÄÃÜÂë¡
Ïà¹ØÎĵµ£º
˼·:SQLÀᄀ¿ÉÄܵIJÉÓÃÁ½¸öÒýºÅ±ÕºÏ±äÁ¿;¶Ô±äÁ¿ÖеÄÒýºÅתÒå;¶Ô²»ÄܲÉÓÃ2¸öÒýºÅ±ÕºÏµÄ±äÁ¿,ÏÈÔ¤ÏÈÅжϱäÁ¿ÀàÐÍ;
·½°¸:
1 ËùÓзÇÊýÖµÔËËã(Èç×Ö·û,¼òµ¥ÊýÖµÐ͵ȵÈ)µÄSQL±äÁ¿¶¼¼ÓÒýºÅ;
2 ËùÓзÇÊýÖµÔËËãµÄSQL±äÁ¿µÄÖµ¶¼²ÉÓÃmagic_quotes_gpc» ......
²»Öª²»¾õ£¬5Ô¹ýÁË´ó°ëÁË£¬Ïë±£³Öÿ¸öÔÂÖÁÉÙ¸ø Blog Ìí¼ÓһЩÐÂÏʵÄÎÄÕ£¬Ò²Ëæ±ã¸ø×Ô¼ºµÄ career ¹ì¼£×öÒ»¸ö¼Ç¼£¬ÓÚÊÇÌá±Ê£¬ºÇºÇ~ ½ñÌìÒª½éÉÜÒ»ÏÂʯͷ×îеÄ×÷Æ· Hush Framework£¬Õâ¸ö¿ò¼ÜÊÇÎÒÕâÁ½¸öÔµÄÐÄѪ֮×÷£¬±¾ÈË»¹ÊDZȽÏÂúÒâµÄ£¬ÒÔÏÂ»á¸ø´ó¼Ò½éÉÜһЩÕâ¸ö¶«¶«µÄÁÁµã¡£Õâ¸ö×÷Æ·µÄ±¾ÒâÊÇΪ¹«Ë¾ÈÕºóµÄÓ¦Óÿª·¢Ìṩһ¸ö ......
Ô´ÂëĿ¼£º/usr/local/src/
Ó¦ÓÃĿ¼£º/usr/local/app/
Ò»¡¢MYSQL°²×°¡£
1.ÏÂÔØMSYQLÔ´Â룺
http://www.mysql.com/downloads/mysql/
×î½ü°æ±¾ÊÇ mysql-5.1.47.tar.gz
2.ÉÏ´«µ½·þÎñÆ÷Ŀ¼/usr/local/src/
cd /usr/local/src/
tar zxvf mysql-5.1.47.tar.gz
cd mysql-5.1.47
./configure --prefi ......
Õ¾µã½á¹¹
´úÂë:
Õ¾µã
©»includes
©»class.inc
©Çtemplet
©»index.htm
©Çlist.htm
©»content.htm
©Çindex.php
©»content.php
¿â½ ......