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

前端 未结 8 1870
我在风中等你
我在风中等你 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:25

    NOTE:

    the header location will eb a location that is readable by the web browser... and not the directory structure. (which include does)

    also the include method will not change the page that the browser is pointing at.

提交回复
热议问题