Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Add link to multiple html files

  • Please log in to reply




  • Member
  • PipPipPip
  • 105 posts
I would like to process multiple html files at once.
What I need to do is add the same image with same hyperlink in the same spot on each html page. I have seen data parsing software that will change a file- so you enter the info to be changed and it changes it to new information for you. But I have no information to input for what needs to change- only info to add.

There is a table at the top of each html page with two hyperlinked images. I need to insert my same hyperlinked image in between the two images already there- so the final result is a three column table with my linked image in the middle of the two that were originally in the html file.

Anyone know a way to do this in one process?
  • 0




    Retired Staff

  • Retired Staff
  • 1,869 posts
Your going to need something like php if you want to include the same content in every page.

Copy the segment of code that you want in ever page and put it in another file say foo.php

Then were you want that code to appear put <?php include("foo.php") ?>

You will need you pages phased as php, to do this add
AddType 'application/x-httpd-php; charset=ISO-8859-1' html xhtml
to your .htaccess.

If you don't know how to use the .htaccess Google it.

Hope that helps.
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP