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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:15:02+00:00 2026-06-09T05:15:02+00:00

I am trying to include a very simple header.html to my index.php but it

  • 0

I am trying to include a very simple header.html to my index.php but it doesn’t seem to work and i can’t get my finger on the problem:

Here is header.html code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="css/master.css"/>
</head>
<body>
<header><img src="img/lys.png" class="logo_lys"/></header>
<nav>
    <ul>
        <li><a href="#">Accueil</a></li>
        <li><a href="#">Équipes</a></li>
        <li><a href="#">Tournois</a></li>
        <li><a href="#">Scrims</a></li>
        <li><a href="#">Forum</a></li>
    </ul>
</nav> 
</body>
<html>

Here is index.php code:

   [...content]
    <body>
    <?php //include("header.html"); ?>
    <?php include("header.php"); ?>
     <?php //include($_SERVER['C:/Documents and Settings/sabourma/Bureau/site_2']."header.html");?>
   [...content]
    </body>
    </html>

I tried to change header.html to header.php because i read if it’s in html the computer won’t process it.
I also tried to include the full path to my header, but it didn’t work.
Please note that all my files are local right now so it can’t be a server problem.
I also read php may be “disable” but have no idea what this means.

  • 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-06-09T05:15:03+00:00Added an answer on June 9, 2026 at 5:15 am

    From the comments below your question it seems like there might be two issues:

    • Either you don’t have php installed
    • Or you have it installed but it’s not running

    If you still need php software, you can find it here. After installing everything, there is a folder in it called “htdocs” where you can put your php files. In the browser, you can access this folder via “http://localhost/”. So, e.g., if you have a folder called “greatsite” in htdocs, you can access it in your browser via http://localhost/greatsite/

    If you simply haven’t activated php, open up the Xampp starter and enable php and apache.

    BTW: You can include html files like php files, both should work, that can’t be the problem.

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

Sidebar

Related Questions

I am trying to get jscrollpane working on a very simple page, but for
I'm very fresh to PHP world. Trying to do as I think very simple
I am trying out a very simple cpp program on osx just to get
I'm trying to do something very simple in Jquery which i just cant get
I'm trying to post some very simple data to a php file using jquery
i'm trying to get into opengl programming, but fail to compile my first very
I'm trying to select either a class or an id using PHP Simple HTML
I am really struggling trying to get something very simple achieved. Essentially, I have
I've Been trying to work on a very simple encryption routine , It should
I'm trying to parallelize a very simple for-loop, but this is my first attempt

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.