HensterRSA Posted June 11, 2012 Share Posted June 11, 2012 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 1 Link to comment Share on other sites More sharing options...
niche Posted June 11, 2012 Share Posted June 11, 2012 How's your database question connected to your mult page question in your situation? Link to comment Share on other sites More sharing options...
HensterRSA Posted June 11, 2012 Author Share Posted June 11, 2012 lol .. sorry Just wanted to make clear Im using raw HTML . any sugesions who i can do this please Link to comment Share on other sites More sharing options...
Ingolme Posted June 11, 2012 Share Posted June 11, 2012 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 More sharing options...
Krewe Posted June 11, 2012 Share Posted June 11, 2012 This can easily be done with PHP and Include/Require functions.Do you know any php? Link to comment Share on other sites More sharing options...
HensterRSA Posted July 17, 2012 Author Share Posted July 17, 2012 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 More sharing options...
birbal Posted July 17, 2012 Share Posted July 17, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now