Some questions...

liunx

Guest
I am not sure if this is even possible...<br />
<br />
On my site I have the navagation at the top. I have used frames in the past, but for some reason I avoided that this time. So, on each individual page I just put the code in for the nav bar. The problem is that if I want to change something about it, then I'd have to go through each and every page (probably 50 or 60) and change the code. Is there a way, rather than using frames, to just have a section which pulls from a default file each time, so if I update just that default file then all will as a matter of course change as well?<br />
<br />
I know nothing about php, but I get the feeling it might have to do with that. Some sort of cgi. Well, not that you need to see it, here is the site,<br />
<br />
<!-- m --><a class="postlink" href="http://www.davidjcubberly.com/">http://www.davidjcubberly.com/</a><!-- m --><br />
<br />
(So if I want to change how the image map works, I'd have to update EVERY page.)<!--content--><? require("filename.html") ?><br />
<br />
put that where you want the code and put the code you want there in filename.html (or what ever extention you want)<br />
<br />
oh and the page needs the extension .php<!--content-->That easy????!!!<br />
<br />
I'll give that a try....<br />
<br />
I guess either way I'll to go through each page at least a few more times anyway....<br />
<br />
Thanks<!--content-->Okay, now the next question is how do I save files as php? I only use notepad for all my html, I don't seem to support .php in notepad. Or should I use wordpad?<!--content-->in notepad:<br />
File>Save As<br />
<br />
file.php<!--content-->
 
Back
Top