Cerulean
Member

Registered: Dec 1999
Location: Chandler, AZ
Posts: 289 |
quote: Originally posted by euangel
I'm loving this new forum, and it definitely increases my interest in learning PHP. On my website (http://www.broncosfreak.com), I've just been using server side includes (.shtml files) to keep the header and footer up-to-date. Can anyone comment on what the benefits of PHP are over me just using server-side includes?
Server side includes give you the ability to combine multiple documents together (generally used for headers/footers like you mentioned).. PHP (similar to coldfusion, asp, etc..) gives you a scripting interface. This allows you to access databases, dynamically generate pages, etc. For example, you could have all of your articles stored in a database and create a PHP script that would maintain the links to the articles (off the main page) and then generate the pages by combining the database information and an html template.
Personally I use ASP (which is similar to PHP) to create sites. On information driven sites, it makes sense to place all of that information in a database. In the database, I can place a variety of additional information about the page, ie, when I want the page to be displayed on the site, where the page should be displayed, how long it should be displayed, and when the data would no longer be useful and should be deleted. Given this layout, the ASP scripts can not only dynamically generate the pages (so I don't have to create each and every page) but it can also maintain the data (every day I can have a script view the data and delete unnecessary data, prune inactive user accounts, do server maintaince, etc..) which frees up mytime to focus on content and presentation.
I hope this is the reply your looking for, if you want to know more, just let me know..
|