My php include file not getting included in my html file

<h3>Important Links</h3>
<li><a href="index1.html">Home</a></li>
<li><a href="mysites.html"><font color="red">My Sites</font></a></li>
<li><a href="amazingfacts.html">Interesting Facts</a></li>
<li><a href="viewgallery.php">Gallery</a></li>
<li><a href="contact.html">Contact</a></li>

I saved the above code in a file called menu.php.

I have the following code in one of my html pages.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>jppp - My Personal Web Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="jppp - My Personal Web Page - interesting facts"/>
<meta name="keywords" content="jppp, personal web page, first web site, interesting facts"/>
<link rel="stylesheet" href="personal3.css" type="text/css" />
<div id="container">
 <div id="header"> &nbsp;</div>
 <div id="content">
               <h1>Interesting Facts</h1>
Content goes here.  Content goes here.  Content goes here.
<div id="leftmenu">
<div id="side1">
<?php include("menu.php"); ?>
 <div id="footer"><br /><p>
Site created by jppp - All rights reserved &copy; 2007–2008|<a href="">XHTML|</a>
 <a href="">

But even though I have included the php file called menu.php, when I look at my html page, the left menu is missing. I am not able to make out where I am making a
mistake. Why is my php include file getting included in my html file?

The file with the php code in it must have the .php extension. The one with only html code may be called .html or .php, whatever you prefer.
So it should be the way around :slight_smile:

Thanks, guido2004. I was trying out a few things on my own and I did just that before reading your post. I changed the extension of my file from html to php and I can now see the links on my page.