/    Sign up×
Community /Pin to ProfileBookmark

dynamic page – import from files

Using PHP how would I go about taking content from different local files (HTML) and putting them all together to show as a single file?

One of the files would be the same alwayes header.htm, 2nd would change between X number of pages navi1-7.htm, and 3rd would be the one targeted by by a link.

Even just a hint at the syntax for loading in a page would be much appriciated. Thanks in advance.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@Daniel_TDec 06.2004 — Use [url=http://www.php.net/include]includes[/url] ?
×

Success!

Help @aeetes 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...