hi there,
the ideal situation or you can say the ideal example is facebook, facebook had introduce news feed feature, if you are on the home page then your page will go down because new updates are coming, and facebook itself overall is built in php, so my final answer is use javascript and php for creating dynamic webpages.
http://graphicriver.net/item/flat-web-font-icons/*2457*66