Raspberry Pi_Kor_24.4.9 PHP script 파일의 포함

24.4.9 PHP script 파일의 포함

PHP에서는 특정 파일에 있는 text/code/markup을 현재 작업문서에 삽입하여 사용할 수 있는 방법을 제공하고 있다. PHP에서 동일한 PHP, HTML 또는 text를 여러 page에 반복적으로 사용할 필요가 있을 때 이러한 기능은 아주 유용하다.

Raspberry Pi_Eng_24.4.9 Including PHP Script File

24.4.9 Including PHP Script File

PHP provides a way to insert ans use the text/code/markup in a specific file into the current working document. This function is very useful when you need to repeatedly use the same PHP, HTML, or text on multiple pages in PHP.

In PHP, “include” or “require” statement allows a web server to insert the contents of a particular PHP file into the PHP file of current document before executing a particular document.