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

phpÃæÊÔÌ⸽´ð°¸¶þ

1¡¢ÈçºÎʵÏÖ×Ö·û´®·­×ª£¿
<?php
function getStr($str){
        $len=strlen($str);
        for ($i=0;$i<$len/2;$i++){
                $temp=$str[$i];
                $str[$i]=$str[$len-$i-1];
                $str[$len-$i-1]=$temp;
        }
           return $str;
}
echo getStr("abcdef");
?>
2¡¢apache+mysql+phpʵÏÖ×î´ó¸ºÔصķ½·¨£¿
¸öÈ˹۵㣺Ö÷ÒªÊÇ¿´ApacheºÍmysqlµÄ¸ºÔØ¡£
ApacheµÄ¸ºÔؾùºâÖ÷Òª¹é¹¦ÓÚ mod_proxy Õâ¸öÄ£¿é¡£ Ò»°ãÀ´Ëµ£¬¸ºÔؾùºâ¾ÍÊǽ«¿Í»§¶ËµÄÇëÇó·ÖÁ÷¸øºó¶ËµÄ¸÷¸öÕæÊµ·þÎñÆ÷£¬´ïµ½¸ºÔؾùºâµÄÄ¿µÄ¡£»¹ÓÐÒ»ÖÖ·½Ê½ÊÇÓÃÁ½Ì¨·þÎñÆ÷£¬Ò»Ì¨×÷ΪÖ÷·þÎñÆ÷(Master)£¬Áíһ̨×÷ΪÈȱ¸·Ý(Hot Standby)£¬ÇëÇóÈ«²¿·Ö¸øÖ÷·þÎñÆ÷£¬ÔÚÖ÷·þÎñÆ÷µ±»úʱ£¬Á¢¼´Çл»µ½±¸·Ý·þÎñÆ÷£¬ÒÔÌá¸ßϵͳµÄÕûÌå¿É¿¿ÐÔ¡£
mysqlµÄ¸ºÔؾùºâÔÝʱûÓÐÑо¿
3¡¢¶ÔÓÚ´óÁ÷Á¿µÄÍøÕ¾,Äú²ÉÓÃʲôÑùµÄ·½·¨À´½â¾ö·ÃÎÊÁ¿ÎÊÌ⣿
µÚÒ»£¬È·ÈÏ·þÎñÆ÷Ó²¼þÊÇ·ñ×ã¹»Ö§³Öµ±Ç°µÄÁ÷Á¿¡£
µÚ¶þ£¬ÓÅ»¯Êý¾Ý¿â·ÃÎÊ¡£
µÚÈý£¬½ûÖ¹ÍⲿµÄµÁÁ´¡£
µÚËÄ£¬¿ØÖÆ´óÎļþµÄÏÂÔØ¡£
µÚÎ壬ʹÓò»Í¬Ö÷»ú·ÖÁ÷Ö÷ÒªÁ÷Á¿
µÚÁù£¬Ê¹ÓÃÁ÷Á¿·ÖÎöͳ¼ÆÈí¼þ¡£
4¡¢$str1 = null;
$str2 = false;
echo $str1==$str2 ? 'ÏàµÈ' : '²»ÏàµÈ';
ÏàµÈ
$str3 = '';
$str4 = 0;
echo $str3==$str4 ? 'ÏàµÈ' : '²»ÏàµÈ';
ÏàµÈ
$str5 = 0;
$str6 = '0';
echo $str5===$str6 ? 'ÏàµÈ' : '²»ÏàµÈ';
²»ÏàµÈ
echo '<br/>';
$a1 = null;
$a2 = false;
$a3 = 0;
$a4 = '';
$a5 = '0';
$a6 = 'null';
$a7 = array();
$a8 = array(array());
echo empty($a1) ? 'true' : 'false';
echo empty($a2) ? 'true' : 'false';
echo empty($a3) ? 'true' : 'false';
echo empty($a4) ? 'true' : 'false';
echo empty($a5) ? 'true' : 'false';
echo empty($a6) ? 'true' : 'false';
echo empty($a7) ? 'true' : 'false';
echo empty($a8) ? 'tru


Ïà¹ØÎĵµ£º

IISϰ²×°PHP³ÌÐòÔËÐе÷ÊÔ»·¾³Ïê½â

ÏÖÔÚ°ÑÔÚIISϰ²×°PHPµÄ¹ý³ÌÏêϸ¼Ç¼ÏÂÀ´±ãÓÚÈÕºóµÄѧϰ£»
ΪÁË·½±ã¸÷λ¶ÁÕßʹÓÃPHP£¬±ÊÕßÑ¡ÔñÁËPHP5.2°æ±¾£¬¶øIISÔòÊÇXPϵͳ×Ô´øµÄIIS 5¡£Ê×ÏÈÎÒÃÇÒª°²×°IIS×é¼þ£¬Ä¬ÈÏÇé¿öÏÂÔÚXPϵͳÊÇûÓа²×°µÄ¡£ 
   ¡¡µÚÒ»²½£ºÍ¨¹ý¿ØÖÆÃæ°åµÄÌí¼Ó/ɾ³ýWindows×é¼þÍê³ÉIIS×é¼þµÄ°²×°¹¤×÷¡£ 
   ¡¡µÚ¶ ......

3ÖÖ·½·¨ÐÞ¸ÄPHPÊ±Çø king of

PHP5.2.4֮ǰµÄ°æ±¾ÎÞÐèÉèÖÃÊ±Çø¡£ÏÂÃæÊÇÐÞ¸ÄPHPÊ±ÇøµÄÈý¸ö°ì·¨¡£
1¡¢ÐÞ¸ÄPHP.iniÕâ¸öÎļþ
ÕÒµ½date.timezoneÕâÐУ¬È¥µôÇ°ÃæµÄ·ÖºÅ£¬¸Ä³É£º date.timezone = Asia/Shanghai 2¡¢ÐÞ¸Ä .htaccessÎļþ
ÐÞ¸Ä.htaccessÎļþÓÐÁ½ÖÖ°ì·¨£¬ÏÂÃæµÄÁ½ÌõÓï¾äÖ»ÒªÓÐÒ»Ìõ¼´¿É php_value date.timezone Asia/Shanghai
......

PHPѧϰ ÔËËã·ûÓÅÏȼ¶ ºÍ ÔËËã·û

ÔËËã·ûÓÅÏȼ¶
ϱí´ÓµÍµ½¸ßÁгöÁËÔËËã·ûµÄÓÅÏȼ¶¡£
½áºÏ·½Ïò ÔËËã·û
×ó ,
×ó or
×ó xor
×ó and
ÓÒ print
ÓÒ = += -= *= /= .= %= &= |= ^= ~= <<= >>=
×ó ? :
×ó ||
×ó &&
½áºÏ·½Ïò ÔËËã·û
×ó |
×ó ^
×ó &
ÎÞ == != === !==
ÎÞ < <= > >=
×ó ......

10ÌõPHP±à³Ìϰ¹ßÖúÄãÕÒ¹¤×÷

1¡¢Ê¹Óõ¥ÒýºÅÀ¨ÆðÀ´µÄ×Ö·û´®
µ±Ê¹ÓÃË«ÒýºÅÀ´À¨×Ö·û´®Ê±£¬PHP½âÊÍÆ÷»á¶ÔÆä½øÐбäÁ¿Ìæ»»¡¢×ªÒåµÈ²Ù×÷£¬Èç
“\n”¡£Èç¹ûÖ»ÏëÊä³öÒ»¸ö»ù±¾µÄ×Ö·û´®£¬Óõ¥ÒýºÅ»á½ÚʡһЩ×ÊÔ´¡£µ±È»£¬Èç¹ûÐèÒª½øÐбäÁ¿Ìæ»»µÄ£¬ÄǾͱØÐëÓÃË«ÒýºÅÁË¡£
2¡¢×Ö·û´®µÄÊä³ö
ÒÔÏÂÄÄÒ»ÌõÓï¾äµÄÔËÐÐËÙ¶È×î¿ì£¿
print “Hi my name is ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ