Librenix  
(Show all PHP articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Generating static webpages with PHP

Up
vote
Down

Another situation where you might want to generate static pages is if your website ever get slashdotted. That is, if one of your pages gets listed on a very popular website, potentially overloading your server. In that case, you might make a static version of your one very busy page and add a tiny bit of logic to your dynamic page so that it simply fetches the static page very rapidly rather than query databases and generate it over and over again.
Sometimes you may need to generate a static version of your dynamically-generated web pages. For instance, you might have to produce a web-cd, or you might want to offer on your website a compressed version of some content to be downloaded and read off-line. In some cases, you could need to show a work-in-progress of a web site you are developing to someone who doesn't have a connection to the Internet (yes, sometimes it happens). Or you might want to publish your web pages at an Internet site which doesn't offer you server-side programming (such as most of free hosting sites).
 read more | mail this link | score:3701 | -Ray, November 30, 2001 (Updated: December 26, 2002)
More Programming articles...

Abstract Art Online Gallery

coding headlines

No Starch Press has published my Perl One-Liners book!

OpenShift Online: a non-developer guide

Detailed Error Handling In Bash

Tutorial: Create an NFS-like Storage Server with GlusterFS on Ubuntu 12.10

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin