ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

10-1-3 ¥[¤JÅçÃÒµ{¦¡

10-1-3 ¥[¤JÅçÃÒµ{¦¡

10-1-3   ¥[¤JÅçÃÒµ{¦¡
¨ì²{¶¥¬q¡A§Ú­Ì¤w¸g§¹¦¨¡u¨­¥÷½T»{¡vºô­¶ªº¡uµn¤Jªí³æ¡v»P¡u¨­¥÷ÅçÃÒ¡vªºPHPµ{¦¡¼¶¼g¡C²{¦b§Ú­Ì±µµÛ¨Ó¬Ý¬Ý¸Ó¦p¦ó±N¤@¯ëªººô­¶³]©w¬°·|­û±MÄݪººô­¶¡C

²{¦b´N¥H½d¨Ò¥úºÐ¤¤©Ò¨Ï¥ÎªºTEST1.php»PTEST2.php¬°¨Ò¦V¤j®a»¡©ú¡A­n±N¤@¯ëªººô­¶³]©w¬°·|­û±MÄݪººô­¶¡A¨ä¹ê¥u­n¦b¨C­Óºô­¶¤¤¥[¤J¨­¥÷ÅçÃÒªºµ{¦¡§Y¥i¡A¦ý¬O¤£­n§Ñ¤F¡I§Ú­Ì¤w¸g±N¨­¥÷ÅçÃÒªºPHPµ{¦¡»Pµn¤Jµe­±¿W¥ß¥X¨Ó¤F¡A¦]¦¹¡A¤£»Ý­n±N¨C­Ó­n³]©w¬°·|­û±MÄݪººô­¶³£¥[¤W¬Û¦Pªºµ{¦¡¡A§Ú­Ì¥u»Ý­n¦b¨C­Óºô­¶ªº³Ì«e­±¦ì¸m¥[¤J¤U­±³o¦æ±Ô­z´N¦æ¤F¡G
  1. <?include("check.php"); ?>
½Æ»s¥N½X

¹Ï10-5  ´O¤JÅçÃÒµ{¦¡¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

¦bºô­¶¦øªA¾¹ÁÙ¨S³B²zÀɮפ§«e¡A¥i¥HPHP¥]§t¨ç¼Æ§â¨ä¥LÀɮתº¤º®e´¡¤J­n¶Çµ¹¥Î¤áºÝªºÀɮפº¡A¥i¥H¨Ï¥Îªº¥]§t¨ç¼Æ¦³¨âºØ¡A¥»¨Ò¬O§Q¥Î¡uinclude()¡v¨ç¼Æ¡G
include() ¨ç¼Æ
  1. include ( string File_name)
½Æ»s¥N½X
include()¨ç¼Æ·|±N§Ú­Ì«ü©wªºÀɮסu¶×¤J¡v¶i²{¦æªººô­¶¤¤¡A¤]´N¬O»¡¡Ginclude()¨ç¼Æ·|±N§Ú­Ì«ü©wªºÀÉ®×¥[¤J¨ì²{¦æªººô­¶¤¤¤@°_¨Ó°õ¦æ¡A©Ò¥Hinclude¶i¨ÓªºÀÉ®×·|»P²{¦æªººô­¶¦X¨Ö¦b¤@°_°õ¦æ¡C

¥t¥~¤@ºØ¤è¦¡¬O§Q¥Î¡urequire()¡v¨ç¼Æ¡G
require() ¨ç¼Æ
  1. require ( string File_name)
½Æ»s¥N½X
·íµ{¦¡¹J¨ìinclude®É¡A·|§âinclude«ü©wªºÀÉ®×°õ¦æ¤@¹M¡Aµ{¦¡¹J¨ìinclude¤Q¦¸¡A«hinclude´N±N«ü©wªºÀÉ®×°õ¦æ¤Q¹M¡A¤ÏÆ[requrie¡A§Y¨Ïµ{¦¡¹J¨ìrequire¤Q¦¸¡Arequire©Ò«ü©wªºÀÉ®×ÁÙ¬O¥u°õ¦æ¤@¹M¡A¦b®Ä²v¤W¨Ó»¡require¥i¯à¤ñ¸û¦n¥Î¡C
·í§Ú­Ì»Ý­n¦bµ{¦¡¤¤¥H§PÂ_¦¡¨M©w¸Ó¤Þ¤J­þ­ÓÀɮ׮ɡA¥u¥i¨Ï¥Îinclude¦Ó¤£¯à¨Ï¥Îrequire¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD