Jump to content

Multiple Pages in HTML


HensterRSA
 Share

Recommended Posts

Hi I'm playing around with HTML on a website that does not have a Database SQL (cheaper ) I have allot of pages with a backround with repeating code , was wonderding how to copy it all form one pageand if i do any changes on that specific page it will update the otehr pages

  • Like 1
Link to comment
Share on other sites

How's your database question connected to your mult page question in your situation?

Link to comment
Share on other sites

HTML alone can't do that. You have to manually change every page. You're going to need a server-side language if you want to solve that problem. If HTML could do everything on its own, there wouldn't be server-side languages.

Link to comment
Share on other sites

  • 1 month later...

hi after searching around I found the corrrect function

<? $a = file_get_contents("http://www.henster.co.za/mainmenue.php"); echo ($a); ?>

i just name my htm file with the menue options as .php My web server blocks the normab include funtion so this one works

Link to comment
Share on other sites

php include is not function. it is control structure and control structure can not be blocked from setting. what your server has allow_url_include option off. you can still include your files locally and you should always include locally by specifying server absolute path. if you include over http or by url it will have the overhead of requesting each file over http. you should avoid that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...