ÄÄÖÖPHP IDEÏà¶Ô½ÏºÃ
×ÜÌå¶øÂÛ£¬Ò»¸öºÃµÄIDEÐèÒªÂú×ãµÄ¹¦ÄÜ£º
¡·1.
»ù±¾µÄIDEÒªÇ󣺴úÂë¹ÜÀí£¬±à¼Æ÷µÄ¸÷ÖÖÖÇÄܹ¦Äܵȣ»
¡·2. ÔËÐкÍdebug£º¿ÉÒÔ±¾µØÔ¶³Ì·Ö±ðscriptºÍweb
page½øÐÐrunºÍdebug£»
¡·3. ÓÉÓÚPHP¿ª·¢µÄͨ³£¹ý³Ì¶¼ÊÇ£º´úÂëÔÚremoteµÄserverÉÏ£¬¿ª·¢ÈËÔ±µÄ»úÆ÷ÐèҪͨ¹ýFTP»òÕßSSHÁ¬½Óµ½serverÉϽøÐпª·¢ºÍµ÷ÊÔ£¬Òò´ËÈç¹ûIDEÔÚÈçÉϹ¦ÄܵĻù´¡ÉÏ»¹Äܹ»Ìṩ±¾µØ±à¼ÊµÊ±¸üе½serverÉϾ͸üºÃÀ²¡£
Ä¿Ç°Äܹ»Ê¹ÓõÄһЩIDE£º
1. Editplus/notepad++µÈ£º
ͨ¹ýsftpÉèÖÿÉÒÔÁ¬½Óµ½server¹¤×÷£¬¶øÇÒ±¾µØ±à¼Ö±½Ó±£´æµ½serverÉÏ¡£ºÜºÃÂú×ã3£¬µ«ÊÇ1ºÍ2·½ÃæǷȱ£¬´Ó¶øЧÂʲ»¸ß¡£
2.
Eclipse PDT»òÕßZend Studio£º
Zend StudioÊÇ»ùÓÚEclipse¿ª·¢µÄPHP
IDE£¬¿ÉÒÔʵÏÖ1ºÍ2£¬µ«ÊÇ3×öµÃ²»ÊǺܺ㬲»Äܹ»ÇáËɵØʵÏÖ±¾µØ´úÂë±à¼¿ÉÒÔÁ¢¿Ì±£´æµ½serverÉÏ£¬ÐèҪʹÓõÚÈý·½¹¤¾ß£¬ÀýÈçcvs»òÕßftpÊÖ¶¯¸üеȣ»debugÐèÒªÔÚserver¶Ë½øÐÐÅäÖ㬿ÉÓõÄÓÐZend DebugºÍXDebug£¬ÍƼöºóÕß¡£
3. PhpED:
Ä¿Ç°À´ËµÉԺõÄPHP IDE¡£¿ÉÒÔʵÏÖÈçÉÏ˵µÄ1£¬2£¬3¡£µ«ÊǶÔÓÚ3À´ËµÓиöÎÊÌâ¾ÍÊÇ£ºÔÚɾ³ýÎļþµÄʱºò²»ÄÜ×öµ½localºÍremote serverµÄͬ²½£¬ÔÚɾ³ýÒ»·½µÄʱºòÐèÒªÊÖ¶¯µØɾ³ýÁíÒ»·½¡£debugµÄÅäÖÃÊÇʹÓùٷ½µÄÅäÖã¬ÊµÖÊÒ²ÀàËÆÓÚZend DebugºÍXDebugµÄÅäÖá£
Ïà¹ØÎĵµ£º
//Èç¹û$waitAckSecΪ0£¬Ôò·µ»Ø³É¹¦·¢Ë͵Ä×Ö½ÚÊý
//Èç¹û$waitAckSec´óÓÚ0£¬Ôò·µ»Ø·¢Ëͺó½ÓÊÕµ½µÄÄÚÈÝ
//ÈκÎÇé¿öÏ£¬Ê§°Ü¶¼·µ»ØFALSE
function SendUDP($host, $port, $buff, $waitAckSec=0)
{
$result = FALSE;
$socket = ($result=@socket_create(AF_INET, SOCK_DGRAM, SOL_U ......
¹ØÓÚPHPµÄ»º´æ¼¼ÊõÎÒ¸öÈ˵Ķ¨ÒåÊÇ¿ÉÒÔ·Ö³É3¸öÀà±ð1;
»º´æÄ£¿éÕâÕâ¸öÊÇÔÚ·þÎñÆ÷ÉÏ×öµÄ»º´æÉèÖÃ, ±ÈÈçZend¹«Ë¾µÄCache²úÆ·µÈ, Ö÷ÒªÔÀíÊÇͨ¹ý¶ÔPHP´úÂëÎļþµÄÒ»´Î±àÒë±£´æÔÚÄÚ´æÖÐ, ͨ¹ý¼õÉÙI /OµÄ²Ù×÷À´¼Ó¿ì·ÃÎÊËÙ¶È, ²»ÔÚ±¾ÎÄÌÖÂÛ·¶Î§Ö®ÁÐ2;
HTML·½Ê½»òÐíÄã˵PHPÉú³ÉHTMLµÄ·½Ê½²»ÔÚ±¾ÎÄÌÖÂ۵ķ¶Î§Ö®ÁÐ, µ«ÊÇÎÒ¸öÈËÈËΪÕâÖ ......
<?php
/*
×÷ÓãºÈ¡µÃ¿Í»§¶ËÐÅÏ¢
²ÎÊý£º
·µ»Ø£ºÖ¸¶¨µÄ×ÊÁÏ
ʹÓãº
$code = new clientGetObj;
1¡¢ä¯ÀÀÆ÷£º$str = $code->getBrowse();
2¡¢IPµØÖ·£º$str = $code->getIP();
4¡¢²Ù×÷ϵͳ£º$str = $code->getOS();
*/
cla ......
1 Apache
ÐÞ¸Ä documentroot ¸ùĿ¼
directory ·ÃÎʸùĿ¼ȨÏÞ
directoryindex ĬÈÏÊ×Ò³ ......
ÔÚjavascript´úÂëÖÐÓÃencodeURIComponent()º¯Êý´¦ÀíÖÐÎÄ×Ö·û´®£¬
JS´úÂ룺
<mce:script type=”text/javascript”><!--
string = encodeURIComponent(string);
location.href = index.php?keyword=’+string;
// --></mce:script>
PHP´úÂë:
<?php
$keyword = (isset($_GET ......