I have created a menu.php which has my roll over menu and links on it. Now I have created index.php with some content. I want to include my menu.php on all other pages including index.php.
I have used this code on index.php:
<body>
<?php include("menu.php"); ?>
</body>
It is not working for some reason, it 's not importing my menu.php on to the page. I have been working on this all day and still can't figure it out. Please help me, if you wanna see my menu.php code let me know I will email it.
Much appreciated
I have tried everything but it wont work, it's really frustrating me
I have used this:
<body>
<?php
if (file_exists("menu.php"))
{
echo "Menu start.";
include("menu.php");
echo "menu end";
}
else
echo "menu file ain't here!";
?>
</body>
but it doesn't run anything when I preview my browser, I'm hopeless now
I have used this code on index.php:
<body>
<?php include("menu.php"); ?>
</body>
It is not working for some reason, it 's not importing my menu.php on to the page. I have been working on this all day and still can't figure it out. Please help me, if you wanna see my menu.php code let me know I will email it.
Much appreciated
I have tried everything but it wont work, it's really frustrating me

I have used this:
<body>
<?php
if (file_exists("menu.php"))
{
echo "Menu start.";
include("menu.php");
echo "menu end";
}
else
echo "menu file ain't here!";
?>
</body>
but it doesn't run anything when I preview my browser, I'm hopeless now
