Help - Search - Members - Calendar
Full Version: Changing many pages at only one document
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
ragnarmar
Hi. I am totally new to HTML and I am fixing my websites using the control panel of my hosting service provider. My website has several pages and I would like to know whether there is a simple solution if I want to change an element in my pages without having to repeat that changes over and over again for all pages.

For example, can I make a .php document which all other pages will look up to get information on some basics of each page?

I hope you understand what I am looking for.

- Ragnar
Christian J
You can use the PHP include statement. Put e.g. this on all web pages:

CODE
<?php include "foo.txt"; ?>


and the content you want on every page in "foo.txt".
gargoyle1
Try to use a .css file to have reolve all the font and page layout style for the entire website. Use link codes in each page with <style type="text/css">

I hope that helps.

Best,
Jared
Hoary
QUOTE(ragnarmar @ Nov 1 2009, 09:07 AM) *

. . . I am fixing my websites using the control panel of my hosting service provider. My website has several pages and I would like to know whether there is a simple solution if I want to change an element in my pages without having to repeat that changes over and over again for all pages.


It's likely that this will depend to some extent on the design of that control panel. But it's also likely that the provider allows you to bypass the panel.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.