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

PHP½Ì³Ì ³õѧÕ߱ؿ´µÄPHP´úÂë


¾­µäÑ­»·Àý×Ó
<HTML>
<HEAD>
<TITLE>¾­µäÑ­»·Àý×Ó</TITLE>
</HEAD>
<BODY>
<?
    for($counter = 1; $counter <= 6; $counter++) 
      //Ñ­»·6´Î
    {
        print("<B>counter is
$counter</B><BR>\n");    //´òÓ¡6´Î
    }    
?>
</BODY>
</HTML>
forµÄ¸ß¼¶ÔËÓà
<HTML>
<HEAD>
<TITLE>forµÄ¸ß¼¶ÔËÓÃ</TITLE>
</HEAD>
<BODY>
<?
    /* 
    ** ´òÓ¡±ØÒªµÄ˵Ã÷ÎÄ×Ö 
    */
    print("<B>¾àÀëÐÇÆÚÒ»»¹Óм¸Ì죿</B>\n");
    print("<OL>\n");
    for($currentDate = date("U");    
        //¶¨Òå$currentDateʱ¼ä¸ñʽ
        date("l", $currentDate) !=
"Monday";     //ÅжÏÊDz»Êǵ±Ç°ÏµÍ³Ê±¼äÊÇMonday
        $currentDate += (60 * 60 * 24)) 
      //µ±Ç°Ê±¼ä¼ÓÉÏ1Ìì
    {
        /* 
        ** ´òӡʱ¼äÃû³Æ 
        */
        print("<LI>" .
date("l", $currentDate) . "\n");
    }
    print("</OL>\n");
?>
</BODY>
</HTML>
º¯ÊýµÄ¼òµ¥µ÷ÓÃ:
<HTML>
<HEAD>
<TITLE>¼òµ¥µÄº¯Êý</TITLE>
</HEAD>
<BODY>
<FONT SIZE=5>
<?
    function printBold($inputText)       
    //¶¨Òåfunction
printBold£¨£©
    {
        print("<B>" . $inputText
. "</B>");    ////´òÓ¡$inputText
    }
    print("ÕâÐÐûÓмÓÖØ£¡<BR>\n"); 
   &n


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄPHPÐÂÎÅ·¢²¼ÏµÍ³

Ñ¿ÓêÔ­´´PHPÐÂÎÅϵͳ½Ì³Ì£¨µÚÒ»°æ£©µÚÒ»½²£ºÓà phpmyadmin ½¨Á¢Êý¾Ý¿â
Ê×ÏȽ¨Á¢Ò»¸öÊý¾Ý¿â£¬ÃûΪ yayu ¡£ÔÚÕâ¸öÊý¾Ý¿âϽ¨Á¢Ò»¸öÊý¾Ý±í£¬ÃûΪ news ¡£ÏÂÃæ½øÈëÒ»¸öÖØµã£¬ÄǾÍÊÇÔÚ±í news Ͻ¨Á¢¸÷¸ö×ֶΡ£
ÄÇô£¬Ê²Ã´½Ð×Ö¶ÎÄØ£¿Í¨Ë׵㣬¾ÍÊÇÒ»ÀàÊÂÎïµÄ×ܳơ£±ÈÈç˵£¬ËùÓеÄÐÂÎÅ·¢±íʱ¼äÓÃÒ»¸öÃû´ÊÀ´´ú±í£¨´ÓżµÄ¾­ÑéÀ´¿´ ......

PHPÖÐthis self parentÈý¸öÓ¦ÓÃ˵Ã÷

  this,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð¡£´Ó×ÖÃæÉϱȽϺÃÀí½â,·Ö±ðÊÇÖ¸Õâ¡¢×Ô¼º¡¢¸¸Çס£ÎÒÃÇÏȽ¨Á¢¼¸¸ö¸ÅÄî,ÕâÈý¸ö¹Ø¼ü×Ö·Ö±ðÊÇÓÃÔÚʲôµØ·½ÄØ?ÎÒÃdzõ²½½âÊÍÒ»ÏÂ,thisÊÇÖ¸Ïòµ±Ç°¶ÔÏóµÄÖ¸Õë(¹ÃÇÒÓÃCÀïÃæµÄÖ¸ÕëÀ´¿´°É),selfÊÇÖ¸Ïòµ±Ç°ÀàµÄÖ¸Õë,parentÊÇÖ¸Ïò¸¸ÀàµÄÖ¸Õë¡£ÎÒÃÇÕâÀïÆµ·±Ê¹ÓÃÖ¸ÕëÀ´ÃèÊö£¬ÊÇÒòΪûÓиüºÃµÄÓï ......

´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ(ͼ)

ÔÚIIS»ù´¡ÉϽ¨Á¢PHP»·¾³×Ü»á³öÏÖÕâÑù»òÄÇÑùµÄÎÊÌ⣬ºÜ¶àÎÊÌâ¶¼±È½ÏÄѽâ¾ö£¬±ÊÕß×î½üÔÚ½¨Á¢IISÏÂPHP»·¾³Ê±¾ÍÓöµ½Á˳öÏÖ·ÃÎʳö´íµÄÎÊÌ⣬ËùÓÐphpÒ³ÃæÎļþÎÞ·¨Õý³£ÏÔʾ³öÀ´£¬¶øASP»¹ÓÐHTML¾²Ì¬Ò³ÃæÄܹ»Ë³Àû·ÃÎÊ¡£ÏÂÃæ¾ÍÇë¸÷λIT168µÄ¶ÁÕßËæÎÒÒ»Æð´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ¡£
Ò»¡¢¹ÊÕÏÏÖÏó£º
    ±ÊÕß´î½ ......

µÚÒ»¸öphpÍøÕ¾µÄһЩÐĵúÍÌå»á

ÏÈ˵ÏÂÔÚ×öµÄ¹ý³ÌÖÐÓöµ½µÄһЩÎÊÌ⣬ÒÔ¼°½â¾öµÄ·½·¨°É
1.¹ØÓÚÊéд´íÎó
×ʼ×öµÄÊÇÒ»¸öµÇ½ģ¿é£¬ÔڵǽÑéÖ¤µÄʱºò£¬Ê¹ÓÃ$_POST½ÓÊյIJÎÊý£¬È»ºóÔÚÑéÖ¤µÄʱºò£¬È´ÔõôҲ½ÓÊÕ²»µ½ÕâÁ½¸öÖµ£¬ºóÀ´²Å·¢ÏÖ$_POSTд´íÁË£¬Ð´³É$POST  ÉÙ¸öÏ»®Ïߣ¬½á¹ûÎÞ·¨ÕýÈ·µÄÑéÖ¤£¬ºÜÊÇÓôÃÆ¡£»¨Á˺ó¤Ê±¼ä£¬²ÅÕÒµ½Ô­Òò£¬¶øÇÒ»¹ÊÇÒ»¸öµÍ ......

php js ¶¯Ì¬½ø¶ÈÌõ

<?php
//×¢Ò⣬Èç¹ûÊǰ²È«Ä£Ê½£¬Çë²»Òª´ò¿ª£¬Èç¹û²»Êǰ²È«Ä£Ê½£¬Õâ¸öÑ¡Ïî¿ÉÒÔ´ò¿ª
//set_time_limit(0);
for ($i = 0; $i < 500; $i++) {
$users[] = 'Tom_' . $i;
}//end for
$width = 500; //ÏÔʾµÄ½ø¶ÈÌõ³¤¶È£¬µ¥Î» px
$total = count($users); //×ܹ²ÐèÒª²Ù×÷µÄ¼Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ