Skip to main content
gamedev.net
🔒 Locked

[web] Importing HTML code?

Started by NightMonkey Mar 29, 2007 at 4:30 AM 2 replies 1k views
Original Post
NightMonkey
NightMonkey
Hi, I am new to web development and have just created a site using HTML/&#106avascript/PHP/CSS. I use the CSS to create a template for the style of the site but I still have other HTML code that is duplicated for each page (Sidebars, Headers etc). Is there a way to import HTML code for each page so that I can put code into a file that will be used on every page? Thanks in advanced
ToohrVyk
ToohrVyk
PHP can include() files. When used on an HTML file, it simply displays it.
Mr E
Mr E
@NightMonkey:

As ToohrVyk says, have a look at PHP if your server supports it.
Another useful function might be readile(). Furthermore,
you might have a search on google for "template systems", e.g.
the smarty engine.

Might come handy for you
So long,Mr.E

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.