Archive for December, 2007

CHAPTER 13 INTRODUCING WORDPRESS 373 With dynamically

Saturday, December 1st, 2007

CHAPTER 13 INTRODUCING WORDPRESS 373 With dynamically driven sites, the content your blog postings are also stored in a database, but are used dynamically with each request to generate the HTML pages on the fly. Templates for your site are merged with the content to produce the pages sent to the visitor s browser. These generated pages are not stored on the server. With this kind of system, any changes you make to your content or your template are immediately visible. When a visitor comments on a post you have made, the comments will appear immediately. If the software provides a search function, it does so on the blog data itself and presents the page dynamically. If a new page is added, it is immediately available to be returned in the search results. Archives are delivered on demand, with no need to have separate versions for weekly, monthly, by category, and so on. The whole setup takes up less space than pages published statically. You have a template file (or a series of them), but only one version. The content is dynamically inserted into the templates. On the downside, this method is slower to deliver a given page. In practice, you will see it as slower only compared to static pages on the biggest of sites, or on particularly underpowered or overloaded servers. Also, blogs of this type require the database to be available to the running code. If that database becomes unavailable, there is no content to deliver, and the site stops working. In conclusion, your choice of blogging software depends on what you want to do with it. A site that isn t modified too often and perhaps doesn t have too many comments, but does have a lot of visitors, would be best served by a blogging system that supports static publishing. A blog with dynamic content and a lively community contributing comments would be best served by a dynamic technology like WordPress. The many advantages to using WordPress for a community blog will become apparent as you progress through this part of the book. Blogging-Related Terminology In this section, I will briefly explain some of the terms associated with blogs and blogging. Some of them are specific to blogging; others are more generic. Blog Comments: Comments are a feature available with some blogging software. They allow visitors to your blog to comment on your stories. Comments are usually visible after a user clicks a link, often one indicating how many comments there are or inviting the reader to leave a comment. Once the link is clicked, the comments are presented, usually in chronological order with the earliest comment at the top. This is the reverse of the order in which blog stories themselves are presented. Note Comments can be abused by visitors who have messages to spout or grudges. Also, some people will attempt to spam your blog, usually with the intention of getting more exposure to links to their sites. I ll cover comment spam in detail in Chapters 14 and 15.
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

372 CHAPTER 13 INTRODUCING WORDPRESS Hosted services: (Web host server)

Saturday, December 1st, 2007

372 CHAPTER 13 INTRODUCING WORDPRESS Hosted services: These services are web-based applications that allow you to edit content online, and then publish at the click of a button. Some, like Blogger (http://blogger.com/), allow you to publish to a companion web site or to FTP your files to your own server. Other examples are TypePad (http://www.sixapart.com/typepad/) and LiveJournal (http:// www.livejournal.com/). Self-hosted software: These are web-based applications installed on your own or a shared server, with which you edit online. Examples include WordPress, Movable Type, and Text- pattern (http://textpattern.com/). Publishing Methods Weblog software uses either a static or dynamic publishing method. Each method has advantages and disadvantages. Static Publishing Software that uses the static publishing method stores your content in some kind of database, but then generates static HTML pages in a publishing step. Your main blog page, individual story pages, archive pages, and category pages are generated as flat HTML files and stored on the server, or even on a different server. These files are then served by the web server with no further requirement from the blog software. Blogger, Movable Type, and Radio UserLand, among others, are of this type. The major advantage of publishing your blog to static HTML files is speed. All web servers serve static pages the fastest. If you have an extremely busy site, with an underpowered or an overloaded server, the difference will be quite apparent. With adequately powered servers, the speed increase is less significant. Another advantage of static publishing is that you don t need the content database on your web server. In practice, it may be located on the same machine, but that is not required. On the downside, with pages published statically, adding a new story requires several of your pages to be regenerated; sometimes, it may require regenerating all of them. If you want to change the template used on your site to add a new header or even just to correct a spelling mistake every single page will need to be regenerated. This can be extremely slow. For a large site, even on a powerful server, this process can slow the server almost to a halt. This also means that, if you want visitors to be able to comment on your stories, they will need to wait for the page to be regenerated with their new comments. This regeneration is not usually done immediately, as it may overload the server on a busy site. It could even be abused as a form of denial-of-service attack. Alternatively, you could use another service, often located on a different server (several companies provide this service), to handle your site s comments. Lastly, generating hundreds or even thousands of flat files takes up a lot of space. The fixed parts of your pages the header, sidebar, footer, and so on are duplicated in every HMTL file. On a large site with thousands of files, this can consume a considerable amount of space. Dynamic Publishing Software that uses the dynamic publishing method has the content database serve the pages dynamically, generating them as they are requested by a browser. WordPress, Textpattern, and LiveJournal are examples of this type of software.
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.