I am beginner in php and i have a question regarding generating html content. Is it a good way to create static html and use php within it (or) Use php to generate html content, for example, use a class to build a page.
Thanks.
Template engine of some sorts is usually the best and most flexible.
Try: http://smarty.php.net/