Thauwa Posted January 5, 2009 Share Posted January 5, 2009 Can I use HTML to include() (like in php) a page (.html) so that my file sizes are smaller? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 5, 2009 Share Posted January 5, 2009 not with JUST html. you have to use JavaScript (AJAX), PHP include() or Apache Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted January 5, 2009 Share Posted January 5, 2009 Can I use HTML to include() (like in php) a page (.html) so that my file sizes are smaller? Sure. You can use frames - which is strongly discouraged. You can use ajax (js + php) to dynamically retrieve mome html files. Why do you need to do it through html? Php include() is simple enough. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 5, 2009 Share Posted January 5, 2009 Can I use HTML to include() (like in php) a page (.html) so that my file sizes are smaller? Sure. You can use frames - which is strongly discouraged. You can use ajax (js + php) to dynamically retrieve mome html files. Why do you need to do it through html? Php include() is simple enough. with AJAX, no PHP is required...just JavaScript. But a basic PHP include() is still the most prefered Quote Link to comment Share on other sites More sharing options...
Thauwa Posted April 2, 2009 Author Share Posted April 2, 2009 Thanks guys. I am now using php include function. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted April 2, 2009 Share Posted April 2, 2009 You'll use the same banwidth regardless. It has to be downloaded some way or another for the user to see it. 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.