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 904009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:58:51+00:00 2026-05-15T15:58:51+00:00

I know this is a basic PHP question, and I’m trying to learn the

  • 0

I know this is a basic PHP question, and I’m trying to learn the stuff. I very familiar with HTML, CSS and familiar with the CONCEPT of PHP, but not with specifics.

I have always partnered with a back end developer to accomplish this stuff and to set up wordpress sites, etc.

I’m building a very basic four or five page website (a showcase for the client’s custom fishing rods: http://www.tuscaroratackle.com/index2.php). I want to call the page header (as in logo, navigation, etc., not as in the head element) dynamically from a php file, and same thing with the footer, so I don’t have to rewrite all the markup on every page for these bits.

I don’t intend to use a database for this site, I was just thinking I could call those two bits from another file, as you would in a wordpress setup with the header.php in the wp-content directory.

Is there an easy explanation on how to do this? (I get the basics, just looking for help on the more specific PHP calls that need to be made)

Or, if this is not an answer somebody could easy give, can you point me to a good resource to research it further?

Thx

  • 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-15T15:58:51+00:00Added an answer on May 15, 2026 at 3:58 pm

    You betcha – include and require –

    using include

    in your page:

    <body>
      <?php include 'header.php'; ?>
    

    in your header.php

    <div id="header">
       <!-- content -->
       <?php echo "run php stuff too"; ?>
    </div>
    

    would result in:

    <body>
       <div id="header">
         <!-- content -->
         run php stuff too
       </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try: $ git clone "/cygdrive/c/Users/DAMS/Documents/My Dropbox/Projects/RED.git" You're not escaping the… May 16, 2026 at 11:37 am
  • Editorial Team
    Editorial Team added an answer $pattern= '/(#\s*tjs\s*\{\s*)(.*?)(\s*\})/imsU'; $replacement= "test"; $return_string = preg_replace($pattern,'$1'.$replacement.'$3',$string); May 16, 2026 at 11:37 am
  • Editorial Team
    Editorial Team added an answer Could you use git's "assume unchanged" function? If this is… May 16, 2026 at 11:37 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I know this is a very basic question, thats why I just want a
Dang-I know this is a subjective question so will probably get booted off/locked, but
I know this is the basic. I'm just wondering what is the elegant way
I know this is a probable open ended question, and I have tried looking
I know this sounds confusing: I have just built some basic prev/next pagination for
I just had some basic php questions to further my understanding as I learn,
I apologize if this is a basic question, however I have been searching on
I know this in general is beyond the scope of SO, but I am
I think the basic principle of a PHP templating system is string replacing, right?
I have a basic XML file that I load in my PHP using $xml

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.