µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
PHP
» (PHP+IIS+MsSQL±Ð¾Ç²Ä12½g) ¨ç¼Æ
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[±Ð¾Ç]
(PHP+IIS+MsSQL±Ð¾Ç²Ä12½g) ¨ç¼Æ
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
1
#
¸õÂà¨ì
»
¥¿§Ç¬Ý©«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2010-5-13 20:02
|
¥u¬Ý¸Ó§@ªÌ
[±Ð¾Ç]
(PHP+IIS+MsSQL±Ð¾Ç²Ä12½g) ¨ç¼Æ
IIS
,
MsSQL
,
¨ç
,
PHP
,
±Ð
¨ç¼Æ
¨ç¼Æ¬O±Nµ{¦¡±Ôz¿W¥ß¥X¨Óªº¤@ºØ¾÷¨î¡A¨Ã¥B¥i¥H¦b¨ä¥Lªºµ{§Ç¤¤¥[¥H©I¥s¨Ï¥Î¡A¦]¦¹¡A³Q«Ê¸Ë©ó°Æµ{¦¡¤¤ªº±Ôz¬O¤£ÄÝ©ó¥ô¦óªºµ{¦¡°Ï¬qªº¡A¦ý¬O¡A³o¨Ç±Ôz«o¥i¥H³Q¨ä¥L³æ¤¸«½Æ©I¥s¨Ï¥Î¡A©Ò¥H¡A§ÚÌ´N·|§â³o¨Ç»Ýn«½Æ¼¶¼gªºµ{¦¡±Ôz«Ê¸Ë°_¨Ó¦¨¬°¨ç¼Æ¡AÁקK¦]«½Æ¼¶¼gµ{¦¡±Ôz¦Ó®ö¶O¶}µo®É¶¡¡C¨ä«Å§i®æ¦¡¦p¤U¡G
¨ç¼Æ«Å§i®æ¦¡
function ¨ç¼Æ¦W(°Ñ¼Æ1, °Ñ¼Æ2¡K)
{
¡K
//¨ç¼Æ±Ôz°Ï¬q
¡K
}
½Æ»s¥N½X
¨ç¼Æªº«Å§i¥Ñ¡ufunction¡v«O¯d¦r¶}©l¡A¦Ó¥H¡u}¡v¬°¨ç¼Æªºµ²§À¡C
¤¶©ó¡u{¡v»P¡u}¡v¤§¶¡ªº°Ï¬q¡A´N¬O¼¶¼g¨ç¼Æ¤º®e±Ôzªº¦a¤è¡C
¨CÓ¨ç¼Æªº¦WºÙ³£¬O¿W¤@µL¤Gªº¡A¤£¥i¨Ï¥Î«½Æªº¦WºÙ¡C
¨Ò¦p¡G
function MySub()
{
echo ¡§¨ç¼Æ´ú¸Õ¡¨;
}
½Æ»s¥N½X
¨ç¼Æªº°õ¦æ
¤£n¥H¬°§Ú̧â¤W¨Òªº¨ç¼Æ¼g¦n«á¡A°õ¦æµ{¦¡ºô¶´N·|¥X²{¡u¨ç¼Æ´ú¸Õ¡v³o´XÓ¦r£²¡An°õ¦æ¨ç¼Æ¤ºªºµ{¦¡±Ôz¥²¶·¥ý©I¥s°õ¦æ¨ç¼Æ¡A«ç»ò©I¥s¡H§â¨ç¼Æ¦WºÙ·í¦¨¤@Ó±Ôz´N¦æ¤F¡G
<?
function MySub()
{
echo "¨ç¼Æ´ú¸Õ";
}
?>
<HTML>
<HEAD>
<TITLE>ex04_21</TITLE>
</HEAD>
<BODY>
<?
MySub(); //©I¥s¨ç¼Æ
?>
</BODY></HTML>
½Æ»s¥N½X
¨ç¼Æªº°Ñ¼Æ¶Ç»¼
±z³ßÅw¹L¤@¦¨¤£Åܳæ½Õ¥jªOªº¤é¤l¶Ü¡H§Ú·Q¤@©w¬O¤d¦ÊÓ¤£Ä@·N¡I¬Û¹ï©ó§Ú̪º¨ç¼Æ¤]¤@¼Ë¡A¨Ò¦p§Ṳ́W¤@Ó½d¨Ò¡A§Y¨Ï¥¦¥i¥H³Q«½Æ©I¥s¨Ï¥Î¡A¦ý¨C¦¸¥u·|§b§bªº¦C¦L¡u¨ç¼Æ´ú¸Õ¡v³o´XÓ¦r¡A³o¤Ó¤£Àô«O¤F§a¡I³Ì¦n¬O¡G§Ú§Æ±æ¥¦¿é¥X¤°»ò¥¦´N¿é¥X¤°»ò¡C
¬°¤FÅý¨ç¼Æ¹F¨ì¯u¥¿ªº¹ê¥Î©Ê¡A§ÚÌ¥i¥H¦b¨ç¼Æ¤¤¥[¤J°Ñ¼Æ¶Ç»¼ªº¥\¯à¡A¨Ò¦p¡G
//§t¦³¤@ӰѼƪº¨ç¼Æ
function MySub($x)
{
echo $x;
}
//§t¦³¨âӰѼƪº¨ç¼Æ
function YourSub($y,$z)
{
echo ($y*$z);
}
½Æ»s¥N½X
°õ¦æ¦³°Ñ¼Æªº¨ç¼Æ
·í§ÚÌn©I¥s¨ã¦³°Ñ¼Æªº¨ç¼Æ®É¡A¥un¦b©I¥s¨ç¼Æ®É¥[¤J°Ñ¼Æ¸ê®Æ§Y¥i¡A¨Ò¦p¡G§ÚÌn©I¥s¤W¨Ò¤¤ªºMySub»PYourSub¨ç¼Æ¡C
//©I¥s§t¦³¤@ӰѼƪº¨ç¼Æ
MySub("¦r¦ê¿é¥X");
//§t¦³¨âӰѼƪº¨ç¼Æ
YourSub(3,5);
½Æ»s¥N½X
¥HYourSub¨ç¼Æ¨Ó»¡¡A©I¥s¨ç¼Æ®É·|¥H3¡B5¨Ó´À¥N°Ñ¼Æy¡BzªºÈ¡A©Ò¥H·í°õ¦æYourSub¨ç¼Æ¤ºªº¡uecho($y*$z);¡v±Ôz®É¡A´N·|¦bºô¶¤¤¿é¥X3¼5ªºµ²ªG15¡C
¤U¸ü
(14.89 KB)
2010-5-13 20:04
¶Ç»¼ÅܼƵ¹¦³°Ñ¼Æªº¨ç¼Æ
·í§ÚÌn©I¥s¨ã¦³°Ñ¼Æªº¨ç¼Æ®É¡A¦b©I¥s¨ç¼Æ®É¥[¤Jªº°Ñ¼Æ¸ê®Æ¤£¤@©w¥²¶·¬O±`¼Æ¡A¶Ç»¼Åܼƥç§Y¥i¡A¨Ò¦p¡G
<?
//§t¦³¨âӰѼƪº¨ç¼Æ
function YourSub($y,$z)
{
echo ($y*$z); //¿é¥Xµª®×
}
?>
<HTML>
<HEAD>
<TITLE>ex04_22</TITLE>
</HEAD>
<BODY>
<?
$I=10;
$J=2;
//©I¥s§t¦³¨âӰѼƪº¨ç¼Æ
YourSub($I,$J);
?>
</BODY></HTML>
½Æ»s¥N½X
¼Ó¥D¼ö©«
½×¾Â¤£Åý¸ê¾ú¤ñ¸û²Lªº¤H¤U¸ü¬d¬Ýªþ¥óªº¥Î·N
EXCEL±MÄÝ°Q½×°Ï¦Û§Y¤é°_¤¤¾Ç¥Í¥H¤W·|û¤è
³Â»¶®a±Ú°Q½×°Ï ³q¥Îª©³W
OFFICE °ò¦±Ð¾Ç¼Æ¦ì¤Æ
ATX ¹q·½¨ÑÀ³¾¹¤â°Ê±Ò°Ê(¤£±µ¥D¾÷ªO±Ò°Ê)
¦Ò¼{Ãö³¬½×¾Âºô¯¸
³Â»¶®a±Ú°Q½×°ÏÁô¨pÅv¬Fµ¦»¡©ú
³Â»¶®a±Ú°Q½×°Ï ¸Û¼xª©¥D
¥Ñ½׾ÂÂà¶iªº¤¤¾Ç¥Íµ¥¯Å¥H¤W·|û,½ÐÃöª`!
14-2 ¸ê®Æ®w¹Ï¤ù¦s¨ú
¦¬ÂÃ
¤À¨É
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
3
#
µoªí©ó 2010-5-13 20:16
|
¥u¬Ý¸Ó§@ªÌ
¨ç¼Æªº¦^¶ÇÈ
«e±§ÚÌ»¡©ú¤F¨ç¼Æªº¨Ï¥Î¤èªk»P°Ñ¼Æªº¶Ç»¼¡A¦ý¬O©I¥s¨ç¼Æ«á¡A¨ç¼Æª½±µ±N³B²zµ²ªG¦b¨ç¼Æ¤º´N¿é¥X¦Üºô¶¤¤¡AÄY®æ¨Ó»¡¡A³oºØÃþ«¬ªº¨ç¼Æ¥u¯àºÙ¤§¬°¡u°Æµ{¦¡¡]Subprogram¡^¡v¡A¦]¬°¨ç¼Æ¨S¦³±N³B²zµ²ªG¶Ç¦^©I¥s¥¦ªº¥Dµ{¦¡°Ï¬q¡C
nÅý±N³B²zµ²ªG¶Ç¦^©I¥s¥¦ªº¥Dµ{¦¡°Ï¬q¡A¥i¦b¨ç¼Æ§Y±Nµ²§ô¤§«e¡A¨Ï¥Î¡ureturn¡v©R¥O¶Ç¦^¯S©wªº¸ê®ÆȦ¨¬°¨ç¼Æªº¦^¶ÇÈ¡A¨Ò¦p¡G
<?
function MyTest($num)
{
$ans=1;
for ($x=1 ; $x<=$num ; $x++)
{
$ans=$ans * $x ;
}
return $ans; //¦^¶Ç¹Bºâµ²ªG
}
?>
½Æ»s¥N½X
´£¥Ü
©I¥s¨ç¼Æ®É¡A¦³°Ñ¼Æ¶Ç»¼®É¡A°Ñ¼Æ¤§¥~n¥Î¤@¹ï¬A¸¹¥]¬A°_¨Ó¡AYµL°Ñ¼Æ¶Ç»¼®É¡A¥[¤£¥[¬A¸¹³£¥i¥H¡A¤£¹L¡A²ßºD¤W¦b©I¥s¨ç¼Æ®É¡A§Y¨Ï¨S¦³°Ñ¼Æ¶Ç»¼³£ÁÙ¬O·|¥[¤W¤@¹ï¬A¸¹¡C
¹ê°µ¾Ç²ß¡G
¼g¤@¨ç¼Æ¡A¶Ç¤J¼Æ¦r1~12¡A±µµÛ¦^¶Ç¸Ó¼Æ¦r¹ïÀ³ªº©u¸`¡A¨Ò¦p¶Ç¤J°Ñ¼Æ3¦^¶Ç¡u¬K¤Ñ¡v¡C
<?
function moontest($moon)
{
switch ($moon)
{
case 1: case 2: case 3:
return "¬K¤Ñ";
break;
case 4: case 5: case 6:
return "®L¤Ñ";
break;
case 7: case 8: case 9:
return "¬î¤Ñ";
break;
case 10: case 11: case 12:
return "¥V¤Ñ";
break;
default:
echo "¿ù»~";
}
}
?>
<HTML>
<HEAD>
<TITLE>test04_01</TITLE>
</HEAD>
<BODY>
<?
//§ì¨ú¨t²Î¤é´Á®É¶¡¥Ø«eªº¤ë¥÷
$mymoon=date("n");
//©I¥s¨ç¼Æ¨ú±o¹ïÀ³ªº©u¸`
$season=moontest($mymoon);
echo "¥Ø«e©u¸`¬° : $season";
?>
</BODY></HTML>
½Æ»s¥N½X
¹ê°µ¾Ç²ß¡G
¼g¤@¨ç¼Æ¡A±N¶Ç¤Jªº¦r¦ê¤Ï¦V¦C¦L¥X¨Ó¡A¨Ò¦p¶Ç¤JMicrosoft¦^¶Ç¿é¥XtfosorciM¡A¥»ÃD¦³ÂI²`«×¡A¹B¥Î¨ì¤º«Øªºstrlen()¡Bsubstr()¦r¦ê¨ç¼Æ¡C
<?
function Mystring($testword)
{
$strlong=strlen($testword);
$ansstr="";
for ($x=$strlong ; $x>=0 ; $x--)
{
$ansstr=$ansstr . substr($testword,$x,1);
}
return $ansstr;
}
?>
<HTML>
<HEAD>
<TITLE>test04_02</TITLE>
</HEAD>
<BODY>
<?
$test="Microsoft";
echo (Mystring($test));
?>
</BODY></HTML>
½Æ»s¥N½X
strlen()¨ç¼Æ
»yªk¡Gstrlen¡]¡¨string¡¨¡^
¥Î³~¡Gpºâ¤Þ¼Æ¤¤¦r¦êªº¦r¤¸¼Æ¥Ø¡]Long¡^
$myStr= ¡§Hello PHP¡¨;
$myLen = strlen($mystr); //$'myLen = 9
½Æ»s¥N½X
substr()¨ç¼Æ
»yªk¡Gstrsub¡]¦r¦ê, ¶}©l¦r¤¸, «ü©wªø«×¡^
¥Î³~¡G¶Ç¦^¥Ñ¦r¦ê¤¤«ü©w¦r¤¸¼Æ¶}©l¡A¥Ñ¥ª¦Ü¥k¨ú±o«ü©wªø«×¦r¤¸ªº¦r¦ê
$myStr= ¡§Hello PHP¡¨;
$strMid = substr($myStr); //$'strMid = "lo P"
½Æ»s¥N½X
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-12-2
2
#
µoªí©ó 2010-5-13 20:10
|
¥u¬Ý¸Ó§@ªÌ
¨ç¼Æªº©ñ¸m¦ì¸m
¨ç¼Æ§¹¦¨¤F¡A¨º§ÚÌn©ñ¦bþ¸Ì©O¡Hª½±µ©ñ¸m¦b¡u<? ?>¡v¤§¤¤´N¦n¤F£«¡I¨Ò¦p¤U¨Ò¡A²ÊÅé¦rªº³¡¤Àªº³¡¤À´N¬O¨ç¼Æ°Ï¬q¡A¦Ó²ÊÅé¦rªº³¡¤À¤§¥~ªº´N¬O¥Dµ{¦¡ªº°Ï¬q¡G
<?
$mymoon=date("n");
moontest($mymoon);
function moontest($moon)
{
switch ($moon)
{
case 1: case 2: case 3:
echo "¬K¤Ñ";
break;
case 4: case 5: case 6:
echo "®L¤Ñ";
break;
case 7: case 8: case 9:
echo "¬î¤Ñ";
break;
case 10: case 11: case 12:
echo "¥V¤Ñ";
break;
}
}
?>
½Æ»s¥N½X
¨ç¼Æ¬O±N¡uµ{¦¡±Ôz¿W¥ß¥X¨Ó¡vªº¤@ºØ¾÷¨î¡A¨Ã¥B¥i¥H¦b¨ä¥Lªºµ{§Ç¤¤¥[¥H©I¥s¨Ï¥Î¡A©Ò¥H¡AÀ³¸Ó¾¨¶qÁקK±N¨ç¼Æ²VÂø©ó¨ä¥Lµ{¦¡°Ï¬q¤¤¡A³q±`§Ú̳£·|±N¨ç¼Æ°Ï¬qÂ\©ñ©ó¥Dµ{¦¡°Ï¬qªº³Ì¤W¤è©Î³Ì¤U¤è¡C
¤U¸ü
(6.4 KB)
2010-5-13 20:11
±z¤£¥²¾á¤ß©I¥s¨ç¼Æ«á¡Aµ{¦¡±Ôz¶i¤J¨ç¼Æ¥H«á´N¦^¤£¨Ó¤F¡A·í§ÚÌ©I¥s°Æµ{¦¡¦Ó¶i¤J°Æµ{¦¡±Ôz°Ï¬q«á¡A°Æµ{¦¡¤¤ªº±Ôz³v¤@°õ¦æ«á¡A¹J¨ì¡y}¡z®É¡A¨ç¼Æ´N·|µ²§ô¦Ó¡uªð¦^¡v©I¥s¨ç¼Æ±Ôzªº¤U¤@Ó±ÔzÄ~Äò°õ¦æ¡C
¤£¹L¡Aµ§ªÌ²ßºD±N¨ç¼Æ¿W¥ß¨Ï¥Î¤@²Õ¡u<? ?>¡v«O¬A°_¨Ó¡A¨ÃÂ\©ñ©óPHPºô¶µ{¦¡¤¤ªº³Ì¤W¤è¡G
<?
function moontest($moon)
{
switch ($moon)
{
case 1: case 2: case 3:
echo "¬K¤Ñ";
break;
case 4: case 5: case 6:
echo "®L¤Ñ";
break;
case 7: case 8: case 9:
echo "¬î¤Ñ";
break;
case 10: case 11: case 12:
echo "¥V¤Ñ";
break;
default:
echo "¿ù»~";
}
}
?>
<HTML>
<HEAD>
<TITLE>ex04_23</TITLE>
</HEAD>
<BODY>
<?
$mymoon=date("n");
moontest($mymoon);
?>
</BODY></HTML>
½Æ»s¥N½X
¹ê°µ½m²ß¡G
¼¶¼g¤@Ópºâ1*2*3*¡KNpºâµ²ªGªº¨ç¼Æ
<?
function MyTest($num)
{
$ans=1;
for ($x=1 ; $x<=$num ; $x++)
{
$ans=$ans * $x ;
}
echo $ans;
}
?>
½Æ»s¥N½X
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
¯à·F¤£·F¡A¤£¦pW·F¹ê·F¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·