Hi there,
fairly new to php but done a few things before..
i've come to it today and trying to write a SIMPLE 'include'
and it doesn't seem to be working
i've created two files index.php & menu.php
menu.php contains
<html>
<body>
<a href="http://www.example.com/index.php">Home</a> -
<a href="http://www.example.com/about.php">About Us</a> -
<a href="http://www.example.com/links.php">Links</a> -
<a href="http://www.example.com/contact.php">Contact Us</a> <br />
index.php contains
<?php include("menu.php"); ?>
<p>This is my home page that uses a common menu to save me time when I add
new pages to my website!</p>
</body>
</html>
when i run the index.php in the browser it doesn't run the php code atall.
the source code is still returning the php code even..
<?php include("menu.php"); ?>
<p>This is my home page that uses a common menu to save me time when I add
new pages to my website!</p>
</body>
</html>
which seems very strange to me, because even if the php doesn't work, the <?php function ?> code shouldn't be visible in the source code should it?..
i've had it working before, but it doesn't seem to be having any of it today.
quite worried that i'm stuck on such a basic function.