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
Ïà¹ØÎĵµ£º
Ò» Apache µÄ°²×°
1 Apache µÄ°²×°
2 ͬÒâÐÒé
3 ½Ó×Å "Next "
4 Ìîд ÓòÃû(network domain) ·þÎñÆ÷µÄÃû³Æ (Server Name) ¹ÜÀíÕßÓÊÏä(Administrator's Email)
5 °²×°ÀàÐÍ
6 Ñ¡Ôñ°²×°Â·¾¶
7 µã»÷“install ” ¼ÌÐø
8 ¿ªÊ¼°²×°
9 °²×°½áÊø
¶þ MySqlµÄ°²×°
......
Èç¹ûÔÚPHPÖÐҪʵÏÖ¶Ô²ÊÆ±µÄʵÏÖÓ¦¸ÃÔõô×öÄØ£¿
¸ù¾ÝÇ°Ãæ¼¸ÕÅÌáµ½µÄ¼¸ÖÖÊý×éÓ÷¨£ºPHP˳ÐòÅÅÐò£¬PHP——¶þ·Ö·¨²éÕÒÊý¾Ý£¬ÔÚPHPÊý×éÖÐËÑË÷Ö¸¶¨µÄÖµ£¬PHPÊý×éµÄÈëÕ»Óë³öÕ»£¬ºÏ²¢£Ð£È£ÐÊý×飬Äܹ»ÊµÏÖ²ÊÆ±¹¦ÄÜÂð£¿
´ð°¸ÊÇ£º¿ÉÒÔ¡£µ«ÊÇÕâÑù×öµÄ´úÂë»á±äµÃºÜÓ·Öס£
Õâʱ£¬ÎÒ¿´µ½ÁËphpµÄshuffleº¯Êý¡£shuffleº¯Êý¿É ......
this,self,parentÈý¸ö¹Ø¼ü×ÖÖ®¼äµÄÇø±ð¡£´Ó×ÖÃæÉϱȽϺÃÀí½â,·Ö±ðÊÇÖ¸Õâ¡¢×Ô¼º¡¢¸¸Çס£ÎÒÃÇÏȽ¨Á¢¼¸¸ö¸ÅÄî,ÕâÈý¸ö¹Ø¼ü×Ö·Ö±ðÊÇÓÃÔÚʲôµØ·½ÄØ?ÎÒÃdzõ²½½âÊÍÒ»ÏÂ,thisÊÇÖ¸Ïòµ±Ç°¶ÔÏóµÄÖ¸Õë(¹ÃÇÒÓÃCÀïÃæµÄÖ¸ÕëÀ´¿´°É),selfÊÇÖ¸Ïòµ±Ç°ÀàµÄÖ¸Õë,parentÊÇÖ¸Ïò¸¸ÀàµÄÖ¸Õë¡£ÎÒÃÇÕâÀïÆµ·±Ê¹ÓÃÖ¸ÕëÀ´ÃèÊö£¬ÊÇÒòΪûÓиüºÃµÄÓï ......
ÔÚIIS»ù´¡ÉϽ¨Á¢PHP»·¾³×Ü»á³öÏÖÕâÑù»òÄÇÑùµÄÎÊÌ⣬ºÜ¶àÎÊÌâ¶¼±È½ÏÄѽâ¾ö£¬±ÊÕß×î½üÔÚ½¨Á¢IISÏÂPHP»·¾³Ê±¾ÍÓöµ½Á˳öÏÖ·ÃÎʳö´íµÄÎÊÌ⣬ËùÓÐphpÒ³ÃæÎļþÎÞ·¨Õý³£ÏÔʾ³öÀ´£¬¶øASP»¹ÓÐHTML¾²Ì¬Ò³ÃæÄܹ»Ë³Àû·ÃÎÊ¡£ÏÂÃæ¾ÍÇë¸÷λIT168µÄ¶ÁÕßËæÎÒÒ»Æð´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ¡£
Ò»¡¢¹ÊÕÏÏÖÏó£º
±ÊÕß´î½ ......
PHP5ÖÐÔöÇ¿ÁËXML
µÄ
Ö§³Ö£¬Ê¹ÓÃDOM
À©Õ¹ÁËXML²Ù×÷µÄÄÜÄÍ¡£ÕâЩº¯Êý
×÷Ϊ PHP5 ºËÐĵÄÒ»²¿·Ö£¬ÎÞÐè±»°²×°
¼´¿ÉʹÓá£
ÏÂÃæµÄÀý×Ó¼òµ¥µÄÑÝʾÁËDOM¶ÔXMLµÄ²Ù
×÷£¬Ïêϸ½âÊÍÇë¿´´úÂë
ÖеÄ×¢ÊÍ
<?
/************************************************
** & ......