|
|
|
|
![]() ![]() |
Nov 24 2006, 08:12 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 24-November 06 Member No.: 33,941 |
OK, so I want to know if it's possible to have my links as a seperate file and simply reference that file in the rest of my site's pages so that if I change the links, I don't have to go and edit every single page of my site.
Does anyone know how to do this? |
|
|
|
Nov 24 2006, 08:53 AM
Post
#2
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,916 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 |
Two ways: PHP include, or (i)frames.
Since you've posted this in the HTML section, i'ma suggest using an iframe. Information on how to properly use an iframe can be found here. If you would like to know how it's done with PHP, let us know. |
|
|
|
Nov 25 2006, 07:24 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 210 Joined: 7-June 06 Member No.: 24,817 |
if your looking to use a php way, put all of your links in a html form (<a href="link">text</a><br>) into a text file, then use a php include like this:
CODE <?php include('file') ?> replace file with the relative file path This post has been edited by AlternativeNick: Nov 25 2006, 07:25 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th October 2008 - 05:53 AM |