Jump to content

Resuing html code (solution for this????)


ident

Recommended Posts

I have ten web pages and i reuse the same header on each one.

 

If i m ake a change i have to edit them all.

 

The only languages i know are html,vbscript,vb.net and asp.net(failry ok) but i am on windows xp home, so cannot make a control for this

 

is there any other solution u guys got?>

Link to comment
https://forums.phpfreaks.com/topic/174096-resuing-html-code-solution-for-this/
Share on other sites

you can use php. the code for this would be pretty simple

 

<?php include('header.php'); ?>

 

and header.php would be the only one you need to adjust... there are a couple of rules you need to watch though

 

the first is that you need to rename your files from whatever.html to whatever.php

 

and the second 'rule' is that any a:active affects would work differently now, so you can use css, if you know css to do that...

In order to run PHP though you would need to install a web server (for instance Apache) and PHP. There are packages that make it really easy for you such as LAMP and XAMPP. You say you're using WinXP, is this for some kind of intranet site?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.