Hi,
i've just started on php. i want to split my site up into include files so that i can have seperate html files with my menu etc in and then include them in the php page. the code i've been using is below - when i do this i get the desired effect except there server puts a '1' in the webpage under the included part. Any ideas?
My code:
from my php file...
[code=html]
<div id="menu">
<?= file "menu.html" ?>
</div> <!--End of menu-->
my include file:
<ul>
<li><a href="index.htm l">Home</a></li>
<li><a href="contact.h tml">Contact Us</a></li>
<li><a href="radlok.ht ml">Radlok Cart Retention</a></li>
<li><a href="sos.html" >SOS Product Security Alarm</a></li>
<li><a href="eatmecrun chy.html">Eatme crunchy Cereal Bowl </a></li>
<li><a href="paving.ht ml">Paving with a Message</a></li>
<li><a href="timing.ht ml">Timing<br />Old Inventions</a></li>
<li><a href="bio.html" >Gray Matter Biography</a></li>
</ul>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
cheer,
philleep
i've just started on php. i want to split my site up into include files so that i can have seperate html files with my menu etc in and then include them in the php page. the code i've been using is below - when i do this i get the desired effect except there server puts a '1' in the webpage under the included part. Any ideas?
My code:
from my php file...
[code=html]
<div id="menu">
<?= file "menu.html" ?>
</div> <!--End of menu-->
my include file:
<ul>
<li><a href="index.htm l">Home</a></li>
<li><a href="contact.h tml">Contact Us</a></li>
<li><a href="radlok.ht ml">Radlok Cart Retention</a></li>
<li><a href="sos.html" >SOS Product Security Alarm</a></li>
<li><a href="eatmecrun chy.html">Eatme crunchy Cereal Bowl </a></li>
<li><a href="paving.ht ml">Paving with a Message</a></li>
<li><a href="timing.ht ml">Timing<br />Old Inventions</a></li>
<li><a href="bio.html" >Gray Matter Biography</a></li>
</ul>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
cheer,
philleep
Comment