Tuesday, October 25, 2011

How to create a "dynamic" website?

How can I build my website so that when I change one thing, it changes everywhere? For example, if I have a menu, and change one of the links, I don't want to have to go on every page just to change the link. If you need more details, just let me know.How to create a %26quot;dynamic%26quot; website?Your choices:

1. Frames - They don't require any kind of server side language, they screw up scrolling and they mess up the %26quot;back%26quot; button and bookmarking.



2. PHP, ASP, or JSP they all have some kind of %26lt;? include ?%26gt; statement to let you bring in another page.



3. Build the pages as XML and use an XSLT stylesheet to change them to XML. it's difficult and tends to be testy.



4. Use AJAX to bring down a file. THis won't degrade well if the user doesn't have JS enabled.How to create a %26quot;dynamic%26quot; website?There should have a save button on they and you jest like have to refresh your web pageHow to create a %26quot;dynamic%26quot; website?Put your menu on a php page (IE: menu.php) and add this to your main pages:



%26lt;?php include('thispage.php'); ?%26gt;



That way, all you have to do is change that one page and it changes them all.



Any more questions, just ask in your details :)