5-5-1 ±j¨î¿é¥X»P²M°£½w½Ä°Ï¸ê®Æ
¡@¼ÊºÙ: ¤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-11-25
|
5-5-1 ±j¨î¿é¥X»P²M°£½w½Ä°Ï¸ê®Æ
5-5-1 ±j¨î¿é¥X»P²M°£½w½Ä°Ï¸ê®Æ
·í§ÚÌ°õ¦æ¡uob_start();¡v©R¥O±Ôz«á¡A¤]´N¬O¶}±Ò½w½Ä°Ï«á¡A¨Ã¤£¤@©wnµ¥¨ì¾ã¥÷PHPºô¶³£¸ÑĶ§¹²¦«á¤~¯à¶}©l¿é¥X¸ê®Æ¡A¦bPHPºô¶¸ÑĶªº¹Lµ{¤¤¡A§ÚÌ¥i¥H§Q¥Îflush()¨ç¼Æ±j¨î±N¦s©ñ©ó½w½Ä°Ïªº¸ê®Æ¥ß§Y¿é¥X¡A¤]¥i¥H§Q¥Îob_end_flush()¨ç¼Æ±N¦s©ñ©ó½w½Ä°Ïªº¸ê®Æ¿é¥X¨ÃÃö³¬½w½Ä°Ï¡C
ex05_13.php- <? ob_start();?>
- <html><body>
- <?
- echo "¸ê®Æ²Ä¤@¦¸¦s¤J½w½Ä°Ï";
- ob_end_flush();
- ob_start();
- echo "¸ê®Æ²Ä¤G¦¸¦s¤J½w½Ä°Ï";
- ob_end_clean();
- ?>
- </body>
- </html>
½Æ»s¥N½X ¥H¤W¨Ò¨Ó»¡¡A¿é¥Xªº¸ê®Æ±N¥u¦³³Q±j¨î¿é¥Xªº¡u<html>¡B<body>¡v»P¡u¸ê®Æ²Ä¤@¦¸¦s¤J½w½Ä°Ï¡v¡AÁÙ¦³¾ã¥÷PHPºô¶³£¸ÑĶ§¹²¦¤~¶}©l¿é¥Xªº¸ê®Æ¡u</html>¡B</body>¡v¡C
- ¦b¡u<html>¡B<body>¡v»P¡u¸ê®Æ²Ä¤@¦¸¦s¤J½w½Ä°Ï¡v¦bob_end_flush()©R¥O°õ¦æ«á³Q±j¨î¿é¥X¡A¦Ó½w½Ä°Ï¤]¦P®É³QÃö³¬¤F¡C
- ·í°õ¦æ¡uecho "¸ê®Æ²Ä¤G¦¸¦s¤J½w½Ä°Ï";¡v©R¥O±Ôz«á¡A¡y¸ê®Æ²Ä¤G¦¸¦s¤J½w½Ä°Ï¡z³Q¦s©ñ¦Ü½w½Ä°Ï¡C
- ¡uob_end_clean();¡v©R¥O±Ôz°õ¦æ«á¡A½w½Ä°Ï¤º®e³Q²M°£¡A¡y¸ê®Æ²Ä¤G¦¸¦s¤J½w½Ä°Ï¡z³Q¤H¶¡»]µo¤£¦s¦b¤F¡I¦Ó½w½Ä°Ï¤]¦A¦¸³QÃö³¬¤F¡C
- ¡u</html>¡B</body>¡v¨Ã¨S¦³³Q¦s©ñ¦Ü½w½Ä°Ï¡A¦Ó¬O³Qª½±µ¿é¥X¡C
¥H¤W½×ÃÒ¥iÂǥѽd¨Òex05_13.php°õ¦æ«á¡A±qÀ˵øºô¶ì©lÀɤ¤Àò±oÃÒ©ú¡A¦p¤U¹Ï¡G
¹Ï5-18 ½d¨Òex05_13.php¡C |
|
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
|
|
|
|
|