I know HTML isn't really a programming language, but this is the most appropriate place I figured I'd post...
I want to do a series of webpages that look like this:
[Title]
[Generic blahblah]
[Specific blahblah]
In each webpage, the generic blahblah is the same. What I want to do, if that's possible, is have that generic blahblah get stored on a page of its own, and embedded into the specific pages. This way, if I need to update the generic stuff, I only have to do it once instead of for each page I got where it appears.
Trouble is, my knowledge of HTML is feeble... So rather than become an hero, I thought I'd try myself on /prog/ and read Anonymous' opinion on the task at hand.
Name:
Anonymous2007-01-20 23:40
use PHP and the function include(name of file) or require(name of file) to output the repeated parts of the page
Name:
Anonymous2007-01-21 1:05
you can also look into something called SSI for a simpler solution that php
>>13
Never at the same time. With all respect, do you really think any of us' websites could get that activity? Ten fucking thousand requests at once? Not even porn sites get that.
Name:
Anonymous2007-01-22 8:35
>>15
i used to run a site that got 5000-15000 requests per hour (depending on time of day)... and that was a site that i tried to keep from becoming too popular...
>>22
no, nothing illegal... i'm not going to say what kind of site, tho... i don't want anyone to steal the idea before i can get enough bandwidth (and a more powerful server) to handle that much activity...
>>1
I used a simple javascript to archive this years ago before I had heard of php, basically just a whole lot of "document.write"s. That might work if your host doesn't have PHP or SSI