ÅäÖÃApacheµÄ·ÃÎÊĿ¼£¨for PHP£©
ÔÚĬÈÏÇé¿öÏ£¬phpµÄÏîÄ¿ÐèÒª½¨ÔÚApache Group\Apache\htdocsĿ¼Ï²ſÉÒÔÕý³£·ÃÎÊ¡£µ±ÎÒÃÇÐèÒª×Ô¼º½¨Á¢Ò»¸ö²»ÔÚApache Group\Apache\htdocsĿ¼ÏµĹ¤×÷Çø¼äʱ£¬¾ÍÐèÒª¸Ä±äApacheµÄ·ÃÎÊÖ¸¶¨Â·¾¶¡£°²×°ºÃApache ºó£¬ÔÚApache Group\Apache\conf ÏÂÓÐÒ»¸öÎļþhttpd.conf£¬ËüÀïÃæ°üº¬×ÅÐí¶àÅäÖÃÐÅÏ¢¡£ÕÒµ½DocumentRoot °ÑËüºóÃæµÄÖµ¸Ä³ÉÄãµÄPHPÏîÄ¿µÄ¹¤×÷Çø¼ä¾Í¿ÉÒÔÁË¡£È磺DocumentRoot "D:\AF05\PHP_Project"¡£ÕâÑù£¬Apache¾Í»áÈÏΪD:\AF05\PHP_ProjectÊÇËüÒª·ÃÎʵÄĿ¼ÁË¡£OK¡£
Ïà¹ØÎĵµ£º
È·±£ÄãµÄ´úÂëÕý³£¹¤×÷ÊDzâÊÔµÄÊ×ÒªµÄÄ¿µÄ£¬µ«ÊÇÔÚ²âÊÔÄãµÄ´úÂëʱºò£¬ÄãÓ¦¸ÃÈÏʶµ½³ý´Ë
Ö®Í⻹ÓÐһЩ¶îÍâµÄ£¬Ïà¶Ô´ÎÒªµÄÄ¿µÄ£º
1¡¢²âÊÔÈÃÄãÊéдÈÝÒײâÊԵĴúÂë¡£ÕâʹµÃ´úÂëËÉÉ¢ñîºÏ£¬¸´ÔÓÉè¼Æ£¬¶øÇÒ¾ßÓÐ
ºÜºÃµÄÄ£¿éÐÔ¡£
2¡¢²âÊÔÄÜÈÃÄãÇåÎúµÄÁ˽âÔËÐдúÂëµÄÆÚÍû½á¹û£¬ÈÃÄã´ÓÒ»¿ªÊ¼¾Í×¢ÖØÓÚÄ£¿éµÄ
Éè¼ÆºÍ·ÖÎö¡£Í¨¹ý²âÊÔ£¬ ......
header()º¯ÊýÓÃÀ´×ªÏò(redirect page)ʱ£¬Èç¹ûµ÷ÓÃÇ°ÓÐÊä³ö£¬±ÈÈçecho»òhtml±êÇ©£¬¾Í»áתÏòʧ°Ü¡£
Èç¹ûµ÷ÓÃÇ°ÓпÕÐÐÒ²»áתÏòʧ°Ü¡£
»¹ÓÐÒ»¸öÔÒò£¬¾ÍÊÇ×¢ÒâÄãµÄphpÎļþµÄ×Ö·û±àÂë¡£ÎÒÓöµ½µÄÇé¿öÊÇ£¬µ±×Ö·û±àÂëΪUTF-8ʱ£¬×ªÏòʧ°Ü£¬¸ÄΪANSIʱ³É¹¦¡£¾ßÌåÔÒò²»Ã÷£¬½ö¹©²Î¿¼¡£ ......
phpÖж¨½ç·û<<<µÄ×÷Óà - [phpÓï
ÑÔ
]
[Time:2009-08-18]
°æȨÉùÃ÷
£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
ת×Ô:http://star210.blogbus.com/logs/44486135.html
ÒòΪPHPÊÇÒ»¸öWeb±à³ÌÓïÑÔ£¬ÔÚ±à³Ì¹ý³ÌÖÐÄÑÃâ»áÓöµ½ÓÃechoÀ´Êä³ö´ó¶ÎµÄhtmlºÍjavascript
½Å
±¾µÄÇé¿ö£¬Èç¹ûÓô«Í³µÄÊ ......
¸Ã³ÌÐòûÓÐÓÅ»¯ Ö»ÊÇ×îÔʼµÄ³ÌÐò ¿ÉÒÔ½«ÆäÓëflash½áºÏÆðÀ´£¡
Óëflash½áºÏÆðÀ´¾ÍÊǽ«phpµÃµ½µÄµØÖ·ºÍÇøÓò ´òÓ¡³öÀ´ÔÙ·µ»Ø¸öflash¶ËÕâô¼òµ¥
<?php
$getIP="218.11.140.23"; // ÕâÀïÊÇ×Ô¼ºËæ±ãдµÄÒ»¸öip ʵ¼ÊʱÄ㻹Ҫͨ¹ý³ÌÐòµÃµ½Õâ¸öip
//Ö»¿ªÊ¼Ê±²éÇ°Èý¶Î
$subIPs=explode(".",$getIP);
$subIP=$sub ......
is_intº¯Êý¶ÔÓÚFORM¹ýÀ´µÄÊý¾ÝÊÇûÓа취ÅжÏÊÇ·ñÊÇÕûÊýµÄ£¬ÒòΪFORM¹ýÀ´µÄÊÇ×Ö·û´®¡£ÓÃis_numeric¿ÉÒÔÅжÏÊÇ·ñΪÊý×ÖÀàÐÍ£¬ÉÔ¶¯ ÏÂÊֽžͿÉÒÔÅжÏÊDz»ÊÇÕûÊýÁË
if(!is_numeric($jp_total)||strpos($jp_total,".")!==false){
echo "²»ÊÇÕûÊý";
}else{
echo "ÊÇÕûÊý";
} ......