best way to parse in a web page?

all my files are .html and im trying to make it so that every html file calls another file to display its menus. is php parsing the best way to do this? or is there a better way when dealing with all .html files?

Anonymous2008-07-29T10:19:12Z

Favorite Answer

This can be done with pure HTML, but only using techniques that are now considered out of date and problematic (frames and iframes)

If your server supports server-side includes (SSI) this can be a powerful and easy alternative:

http://www.aharrisbooks.net/xfd/book_8/chapter_4/

You can also use PHP with include functions (example shown on the same page)

AJAX is becoming a more popular technique, especially with the excellent free AJAX libraries like jQuery. http://www.aharrisbooks.net/xfd/book_8/chapter_4/csAJAX.html

Finally, you can make a more elaborate content management system in a couple of ways. Chapter 8.4 of my Dummies book shows how to create a complete sql-based content management system, and chapter 10 of my PHP book shows how to build a CMS using XML or standard PHP requests.

PHP is a very powerful way to do this, and there are a number of approaches using PHP,

2017-04-11T00:37:33.809Z