I am confused with two terms
header (\"Location:homepage_php\");
include(\"homepage.php\");
I am g
Header forwards the user to a new page, so PHP reinitializes, it's like a HTML meta redirection, but faster.
Include just includes the file where you call it, and it executes it as PHP, just like if the code from homepage.php was written where you write <?php include('homepage.php'); ?>
.
The first is used for redirecting users to a different page.
Second is mostly used in templating systems to use various pages in one page. eg header.php, and footer.php will be included in content.php.