/    Sign up×
Community /Pin to ProfileBookmark

A real Stumper!

Hey gang, I have a real mind boggeling question. I’ve designed a website where it has 3 sections. The one side has my navigation aswell ads, middle has the information and the right side has more ads.

Now my question is… What do I need to do to have it so I only have to update one page to change the ads and links etc. on every page. My site has 20+ pages.

I’ve tried using the include script, but that never worked. I still had to open every page and save it, then upload it to the server.

I’m sure there’s an easier way, or a script for that but I just have no clue! Any suggestions?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@ray326Aug 31.2004 — Use server side includes on the sections that repeat over all pages.
Copy linkTweet thisAlerts:
@MstrBobAug 31.2004 — When you first switch to includes, you have to update each page to remove the current HTML and insert the include function, and rename the files. But when you're done it makes it very fast and simple to update. Of course, it's always easier to build it that way the first time then to change it, but think of the time you will save.

http://www.webdevfaqs.com/php.php#include
Copy linkTweet thisAlerts:
@rsdAug 31.2004 — If your server does not support SSI then the next best thing would be to use an editor that does mass changes.

I use UltraEdit and can update all of the files in a directory in one step using it's "replace in files" function which works just like a normal find and replace but in all the files rather than just the one you're working on.
Copy linkTweet thisAlerts:
@theuedimasterAug 31.2004 — couldn't you just use css?
Copy linkTweet thisAlerts:
@johndoe190Aug 31.2004 — Nah css wouldnt work becuase even if you made a template if you made one change you would have to do it on all of the other changes best idea here is server side includes or and other server side langauge that can include data.
Copy linkTweet thisAlerts:
@theuedimasterSep 01.2004 — Are you serious? So, you just put the header and stuff you want on every page in one html page, and then just include it and leave that side space empty on all your pages? Are you sure?
Copy linkTweet thisAlerts:
@JonaSep 01.2004 — [font=trebuchet ms]I believe what is being said is the HTML markup cannot be modified on all pages by updating one single file without server-side includes of some kind (SSI, PHP, Perl, etc.). A CSS file can modify visual formatting across all pages, but cannot display the HTML code for headers/footers.[/font]
×

Success!

Help @crash spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...