Include files help
Posted: Thu Jul 02, 2009 3:23 pm
Hi all, my first post here. I've been working on migrating some sites for a friend of mine onto a new web server and I've never had any experience of php at all, just HTML and CSS. I have installed PHP onto the web server and FTP'ed all the correct files down to the new web server. I seem to be having trouble with a few of the websites and it seems to be the same issue. A lot of the sites use the include coding for the headers and footers etc. and when I try to host the sites and access them locally, none of the include files are displayed.
Here is the code used in the index.php file:
and here is some code from the top navigation include file:
Can anyone tell me whats wrong and why it wont display any of the includes files? I'm running it on IIS7 on Server 2008
Appreciate any advice or help,
Thanks
Here is the code used in the index.php file:
Code: Select all
<body>
<div id="container">
<div id="main">
<div id="logo"><a href="index.php" title="Webpage title"><img src="images/template/logo_v3.gif" width="257" height="55" alt="Company Name" /></a></div>
<div id="top_navigation">
<? include '_incl/top_navigation.html'?>
</div>
<div id="banner" class="home">
<p>Company text line one</p>
<p>Company text line two</p>
<p>Company text line three</p>
<p><a href="contact.php" title="Contact company">Contact</a></p>
</div>
<div id="main_content">
<h1>WELCOME</h1>
company text<br />
more company text
<p>business history</p>
<p>more business history</p>
<p>more historu</p>
<? include '_incl/hp_lead_modules.html'?>
<p>
</div>
<div id="right_modules">
<? include '_incl/module_latest_news.html'?>
<? include '_incl/module_map.html'?>
<? include '_incl/module_qualify.html'?>
</div>
<br clear="all" />
</div>
<? include '_incl/footer.html'?>
</div>
</body>Code: Select all
<script type="text/javascript" language="JavaScript1.2" src="js/business-name-top-navigation.js"></script>
Appreciate any advice or help,
Thanks