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
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...

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.