Problem with PHP includes?

  • Thread starter Thread starter Karl R
  • Start date Start date
K

Karl R

Guest
I'm having trouble with PHP inludes. I'm using a dreamhost server and I know it supports PHP because I have run PHP scripts on it before. The problem only occurs when I use includes.

I'm simply trying to include a navigation bar into my website like so:

<ul>
<li><a href="index.php">Home<a/></li>
<li><a href="contact.php">Contact us</a></li>
<li><a href="login.php">Login</a></li>
</ul>

I save this as navigation.php then include it into my index.php like so:

<div id="navigation">
<?php
include ("includes/navigation.php");
?>
</div>

I'm using XAMPP on my macbook but this won't even run on the web.
Any help and and advice would be much appreciated.
 
Back
Top