webmaster1 Posted June 27, 2009 Share Posted June 27, 2009 Please don't send this to the html forum. The post is in relation to mimicking a PHP function. PHP INCLUDE is a convenient way of editing universal sections of pages. It's much quicker to edit one file than several. Let's say a hosting account doesn't support server side. Is there a HTML or possibly a JAVASCRIPT workaround? Belated please and thank you in advanced! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 27, 2009 Share Posted June 27, 2009 The only to do this in html is to use Server Side Includes if your host uses Apache. There is no other way to include files if you host does not support PHP, SSI or any other server side language. Quote Link to comment Share on other sites More sharing options...
.josh Posted June 27, 2009 Share Posted June 27, 2009 You can "include" another file with an iframe. Or if it's js code, you can use the src attribute in script tags. Or you can use ajax to grab a file's output contents. Quote Link to comment Share on other sites More sharing options...
webmaster1 Posted June 27, 2009 Author Share Posted June 27, 2009 Thanks lads. The correct terminology is half the battle when schooling ourselves online! The specific site I'm working does not support PHP due to the chosen hosting account type. For anyone else interested in this: Ajax INCLUDE: http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm Iframe INCLUDE: http://www.htmlcodetutorial.com/frames/_IFRAME.html Thanks again php goderator and reccomended php god. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.