what is difference between header and include, where which one should be used

前端 未结 8 1993
我在风中等你
我在风中等你 2021-02-07 18:58

I am confused with two terms

  1. header (\"Location:homepage_php\");

  2. include(\"homepage.php\");

I am g

8条回答
  •  故里飘歌
    2021-02-07 19:28

    The first tells the browser to send a header to the browser to redirect to "homepage_php" (should be .?)

    The second includes the file at the top. This is useful if you're using methods or classes stored in other files, or want the same content to appear on multiple pages.

提交回复
热议问题