hi guys I'm just starting out with php and didn't want to do anything complicated, just use incluse so it's easier to change my site's sidebar etc. I've inserted the following code into my homepage but the two includes, well aren't being included. Maybe this is just a silly mistake or assumption by me, if so feel free to set me straight.
<? php require("navtaobhbar.htm"); ?>
<? php require("banner.htm"); ?>
thanks for your help!
Maybe try <?php ... ?>, without the space between the question mark and the php. Otherwise you can use include(""), but I don't really know the difference between the two of them.
it's still not working, I think it's got to be something to do with the php, either its wrong or the server just isn't bothering to execute it for some reason. The current attempt is:
<!-- php ag tosú -->
<?php include("http://davidmcmullin.frihost.net/navtaobhbar.htm"); ?>
<?php include("banner.htm"); ?>
<!-- php críochnaithe -->
Is there anyreason for the server not to execute php? Are the comment tags interfering? Please help me!
does it need any sort of new php document declarations or can i leave it as i had it as a html document?