note 36467 deleted from function.ob-get-contents by didou

From: Date: Fri, 10 Oct 2003 15:27:56 +0000
Subject: note 36467 deleted from function.ob-get-contents by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58200@lists.php.net to get a copy of this message
Note Submitter: david at torchbox dot com ---- On an industrial scale, the most obvious use of ob_get_content() is of course the generation of static html pages from dynamic php ones. If your website is output with php with the content taken from a DB; as the site grows, so do the hits on the database per minute, and hence the load on your server. Static page generation is a standard method of load balancing. A scheduled task / cron job can be run nightly/weekly/whenever to create the html versions of each page that doesn't need to be completely up to date for every single page view. If static html can be served 10 times a second, rather than php and an expensive database hit - load problems are clearly going to disappear. Those of you writing your own Content Management Systems will only become a market competitor if your product can do this. ob_get_content() is your friend!

« previous php.notes (#58200) next »