Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6750455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:48:32+00:00 2026-05-26T12:48:32+00:00

Simply. I have an empty page looking like <?php include(header.php); include(footer.php); ?> That gives

  • 0

Simply. I have an empty page looking like

<?php
include("header.php");
include("footer.php");
?>

That gives navbar, config files, pageload took: blabla. And stuff like that. But, what’s the pros, and cons of doing so? Instead of, examplewise, putting it all into one file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:48:32+00:00Added an answer on May 26, 2026 at 12:48 pm

    The largest pro I could think of is keeping code clean, and rather then necessarily copying and pasting the code in each individual file you can have it all in one place. Makes it a ton easier to make small changes.

    The largest con I can think of is if you’re looking for an error that happens to be in a different file. Since php pages are compiled server side you cannot just click view source to find it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In WPF 3.5 (with SP1), I have simply StackPanel that I would like to
On the page 'selecteditems.php' I have a form like this: <form method=POST name=selecteditems action=nextpage.php>
Very simply put: I have a class that consists mostly of static public members,
After being troubled by an issue that I simply did not have the knowledge
I have a very simply subclass of UIButton that will fire off a custom
We have a junior programmer that simply doesn't write enough tests. I have to
We have a classic ASP application that simply works and we have been loathe
I have a page that uses JQuery UI; in particular the Sortable interaction. The
I'm building a page of thumbnails with jQuery like this: ID=this.id; $('#thumbs').empty().html('<span class=title>'+$('#'+ID).html())+'</span><br />';
I have an XHTML strict page that has an invisible div that is controlled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.