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

PHP·À×¢Èë·ÖÎö

ÔÚÏÖÔÚ¸÷ÖֺڿͺáÐеÄʱºò£¬ÈçºÎʵÏÖ×Ô¼ºphp´úÂ밲ȫ£¬±£Ö¤³ÌÐòºÍ·þÎñÆ÷µÄ°²È«ÊÇÒ»¸öºÜÖØÒªµÄÎÊÌ⣬ÎÒËæ±ã¿´ÁËϹØÓÚphp°²È«µÄ×ÊÁÏ£¬²¢²»ÊǺܶ࣬ÖÁÉÙ±ÈaspÉÙ¶àÁË£¬ºÇºÇ£¬ÓÚÊǾÍÏëдµã¶«Î÷£¬À´·ÀÖ¹ÕâЩ¿ÉÄܳöÏÖµÄÇé¿ö¡£ÕâÀïûÓÐÌ«ÉîµÄ¼¼Êõº¬Á¿£¬ÎÒÖ»ÊDZȽϼòµ¥µÄ̸ÁË̸¡£(ÒÔϲÙ×÷ÈçÎÞ¾ßÌå˵Ã÷£¬¶¼ÊÇ»ùÓÚPHP+MySQL+ApacheµÄÇé¿ö)  
    ÏÈÀ´ËµËµ°²È«ÎÊÌ⣬ÎÒÃÇÊ×ÏÈ¿´Ò»ÏÂÁ½ÆªÎÄÕ£º
http://www.xfocus.net/articles/200107/227.html      
http://www.xfocus.net/articles/200107/228.html
    ÉÏÃæÎÄÕÂÊÇ°²È«½¹µãÉϵĹØÓÚPHP°²È«µÄÎÄÕ£¬»ù±¾ÉϱȽÏÈ«ÃæµÄ½éÉÜÁ˹ØÓÚPHPµÄһЩ°²È«ÎÊÌâ¡£
    ÔÚPHP±àÂëµÄʱºò£¬Èç¹û¿¼Âǵ½Ò»Ð©±È½Ï»ù±¾µÄ°²È«ÎÊÌ⣬Ê×ÏÈÒ»µã£º
1. ³õʼ»¯ÄãµÄ±äÁ¿
    ÎªÊ²Ã´Õâô˵ÄØ£¿ÎÒÃÇ¿´ÏÂÃæµÄ´úÂ룺
if ($admin)
{
    echo 'µÇ½³É¹¦£¡';
    include('admin.php');
}
else
{
    echo 'Äã²»ÊǹÜÀíÔ±£¬ÎÞ·¨½øÐйÜÀí£¡';
}
    ºÃ£¬ÎÒÃÇ¿´ÉÏÃæµÄ´úÂëºÃÏñÊÇÄÜÕý³£ÔËÐУ¬Ã»ÓÐÎÊÌ⣬ÄÇô¼ÓÈëÎÒÌá½»Ò»¸ö·Ç·¨µÄ²ÎÊý¹ýÈ¥ÄØ£¬ÄÇôЧ¹û»áÈçºÎÄØ£¿±ÈÈçÎÒÃǵÄÕâ¸öÒ³ÊÇ http://www.traget.com/login.php£¬ÄÇôÎÒÃÇÌá½»£ºhttp://www.target.com/login.php?admin=1£¬ºÇºÇ£¬ÄãÏëһЩ£¬ÎÒÃÇÊDz»ÊÇÖ±½Ó¾ÍÊǹÜÀíÔ±ÁË£¬Ö±½Ó½øÐйÜÀí¡£
    µ±È»£¬¿ÉÄÜÎÒÃDz»»á·¸Õâô¼òµ¥´íµÄ´íÎó£¬ÄÇôһЩºÜÒþÃصĴíÎóÒ²¿ÉÄܵ¼ÖÂÕâ¸öÎÊÌ⣬±ÈÈç×î½ü±©³öÀ´µÄphpwind 1.3.6ÂÛ̳Óиö©¶´£¬µ¼ÖÂÄܹ»Ö±½ÓÄõ½¹ÜÀíԱȨÏÞ£¬¾ÍÊÇÒòΪÓиö$skin±äÁ¿Ã»Óгõʼ»¯£¬µ¼ÖÂÁ˺óÃæһϵÁÐÎÊÌâ¡£
    ÄÇôÎÒÃÇÈçºÎ±ÜÃâÉÏÃæµÄÎÊÌâÄØ£¿Ê×ÏÈ£¬´Óphp.iniÈëÊÖ£¬°Ñphp.iniÀïÃæµÄregister_global = off£¬¾ÍÊDz»ÊÇËùÓеÄ×¢²á±äÁ¿ÎªÈ«¾Ö£¬ÄÇô¾ÍÄܱÜÃâÁË¡£µ«ÊÇ£¬ÎÒÃDz»ÊÇ·þÎñÆ÷¹ÜÀíÔ±£¬Ö»ÄÜ´Ó´úÂëÉϸĽøÁË£¬ÄÇôÎÒÃÇÈçºÎ¸Ä½øÉÏÃæµÄ´úÂëÄØ£¿ÎÒÃǸÄдÈçÏ£º
$admin = 0;      // ³õʼ»¯±äÁ¿
if ($_POST['admin_user'] && $_POST['admin_pass'])
{
    // ÅжÏÌá½»µÄ¹ÜÀíÔ±Óû§ÃûºÍÃÜÂëÊDz»ÊǶԵÄÏàÓ¦µÄ´¦Àí´úÂë
  &nbs


Ïà¹ØÎĵµ£º

ÊÖ»úºÅÂëÅжÏphpº¯Êý£¬°üº¬15ºÅ¶Î

 <?php

function checkMobile($str)
{
$pattern = "/^(13|15)\d{9}$/";
if (preg_match($pattern,$str))
{
Return true;
}
else
{
Return false;
}
}
$str = checkMobile("15800000001");
......

phpÖÐecho()£¬print()£¬print_r()µÄÇø±ð

1.echo()ÊÇÒ»¸öphpÓï¾ä£¬ËùÒÔûÓзµ»ØÖµ£¬ÄÜ´òÓ¡¼òµ¥µÄÊý¾Ý¡£
2.print()ÊÇÒ»¸öº¯Êý£¬Óзµ»ØÖµ£¬ÄÜ´òÓ¡¼òµ¥µÄÊý¾Ý¡£
3.print_r()ÊÇÒ»¸öº¯Êý£¬ÄÜ´òÓ¡¸´ÔÓµÄ(mix)Êý¾Ý¡£
È磺
<?
$value = print 'hello word<br>';
echo "the value is $value<br>";
$arr = array('name'=>'wangking','qq'=>'12345 ......

PHP½âÒÉ

PHP½âÒÉ
1. ´úÂëÖØÓ÷½·¨include()ºÍrequire()º¯Êý²îÒ죿
1) Require()º¯Êý
ʹÓÃrequier()°üº¬ÍⲿphpÎļþʱ£¬Ö»Òª×ÔÉíphpÎļþ±»Ö´ÐУ¬ÍⲿÎļþµÄÄÚÈݾͽ«±»°üº¬½ø¸Ã×ÔÉíphpÎļþ£¬µ±°üº¬µÄÍⲿÎļþ·¢Éú´íÎóʱ£¬ÏµÍ³½«¸ø³ö´íÎóÌáʾ£¬²¢ÇÒÍ£Ö¹phpÎļþµÄÖ´ÐС£
ʾÀý£º
µ÷ÓÃÎļþconfig.incµÄ³ÌÐò´úÂ룺
<?php  ec ......

PHP 6½«È«ÃæÖ§³ÖUnicodeºÍ¹ú¼Ê»¯

 PHPChinaѶ£ºPHPºËÐÄ¿ª·¢ÕßAndrei ZmievskiÔÚ×î½ü¾ÙÐеÄ2009 Zend/PHP»áÒéµÄÖ÷Ìâ·¢ÑÔÖÐÌá³ö£º“ÔÚ½ÓÏÂÀ´µÄPHP6ÖØÒªÉý¼¶ÖУ¬½«Í¨¹ýÖ§³ÖUnicodeÀ´°ïÖú¿ª·¢ÕßÃÇд³öÄܹ»²¿Ê𵽶à¸ö²»Í¬ÓïÑÔÊг¡µÄÓ¦ÓóÌÐò¡£”
¡¡¡¡ÉÌÒµ¿ª·¢ÖÐÈç¹ûÖ»ÊÇ¿ª·¢ÎªÌØÓïÑÔÊг¡µÄÓ¦ÓóÌÐò£¬¾Í»áʧȥÆäËûµØ·½µÄÉÌÒµ»ú»á¡£ÔçÔÚ2006Äê4Ô£ ......

ÈçºÎ±àдPHPÀ©Õ¹

 ¼ò ½é
PHPÈ¡µÃ³É¹¦µÄÒ»¸öÖ÷ÒªÔ­ÒòÖ®Ò»ÊÇËýÓµÓдóÁ¿µÄ¿ÉÓÃÀ©Õ¹¡£web¿ª·¢ÕßÎÞÂÛÓкÎÖÖÐèÇó£¬ÕâÖÖÐèÇó×îÓпÉÄÜÔÚPHP·¢ÐаüÀïÕÒµ½¡£PHP·¢Ðаü°üÀ¨Ö§³Ö¸÷ÖÖÊý¾Ý¿â£¬Í¼ÐÎÎļþ¸ñʽ£¬Ñ¹Ëõ£¬XML¼¼ÊõÀ©Õ¹ÔÚÄÚµÄÐí¶àÀ©Õ¹¡£
À©Õ¹APIµÄÒýÈëʹPHP3È¡µÃÁ˾޴óµÄ½øÕ¹£¬À©Õ¹API»úÖÆʹPHP¿ª·¢ÉçÇøºÜÈÝÒ׵Ŀª·¢³ö¼¸Ê®ÖÖÀ©Õ¹¡£ÏÖÔÚ£¬Á½¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ