|
Dynamic Generation Of Static Webpages
Loris Tissino
The Problem
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).
In these circumstances, what you have to produce is a lot of
static web pages, viewable by a user who doesn't have a webserver
running, or hosted where you can't control a dynamic generation.
What if you wanted to use PHP to produce those pages, taking
advantages from it, with minimum effort? Here below I'll describe
something you could do quite easily. Extra ideas on this base will be welcome.
What you need
You'll need only some tools you probably already have: a webserver, PHP,
and a browser that you can control in batch mode, such as lynx (present in
most Linux distributions, and freely available for other platforms at lynx.browser.org).
[ Next Page ]
| Comments: | ||
| Problem posting forms | Olanrewaju, Michael Oluseyi | 02/28/05 14:25 |
| about php | gaya | 02/16/05 03:08 |
| The best php site copier | Leonardo Forero | 02/28/03 22:34 |
| RE: dynamic/static web sites? | china_boy | 12/30/02 04:18 |
| Need some advice please | Dave McKergan | 05/09/02 09:04 |
| RE: Use pavuk wget plus more | James Wilford | 04/09/02 21:30 |
| RE: dynamic/static web sites? | Ellen Richardson | 02/27/02 12:06 |
| what if you don't have linux | Edith | 12/06/01 09:13 |
| dynamic/static web sites? | John | 11/30/01 17:28 |
| RE: wget to the rescue | What if the site has passwords ? | 11/26/01 16:01 |
| Url argument and javascript is solution | rachmadji wibowo Ph.D | 11/02/01 04:40 |
| RE: What about URL arguments??-a solution | Vladimir | 10/04/01 11:08 |
| static and dynamic | david | 10/03/01 16:14 |
| letter | suhas | 09/15/01 10:48 |
| Use pavuk wget plus more | A K | 08/22/01 06:39 |
| RE: Frontpage | Neil | 08/15/01 23:29 |
| RE: What about URL arguments?? | Stephen Webb | 08/08/01 23:26 |
| a different approach: Speeding up page loads | Alfredo Rahn | 07/31/01 05:55 |
| IP Address configuration | Saravanan | 07/31/01 02:37 |
| RE: If you have mod_php you can use long URL's | Russel | 07/29/01 00:03 |
| RE: If you have mod_php you can use long URL's | Russel | 07/28/01 23:56 |
| RE: why re-invent the wheel? | Raven | 07/11/01 09:52 |
| RE: No need for Lynx, use fopen(http://) | Bernhard Dreyer | 06/12/01 10:15 |
| just run php directly man | Radek Burkat | 06/11/01 12:10 |
| If you have mod_php you can use long URL's | Bill Peck | 06/07/01 16:39 |
| RE: What about URL arguments?? | Rick | 05/25/01 07:52 |
| static or dynamic? | Ryan Thomas | 05/14/01 07:03 |
| RE: wget to the rescue | certron | 05/13/01 09:10 |
| RE: why re-invent the wheel? | lanson | 05/07/01 23:57 |
| Keep semi-static o r semi-dynamic | Tjin | 05/04/01 14:43 |
| if your html on a web cd use javascript!!! | Daniel | 05/02/01 15:24 |
| why re-invent the wheel? | foo | 05/02/01 07:57 |
| Does anybody have a simple example? | Ali Driver | 05/01/01 00:44 |
| RE: wget to the rescue | Stefan Waidele | 04/30/01 21:29 |
| RE: What about URL arguments?? | Jonathan Melhuish | 04/30/01 15:32 |
| Frontpage | Teo Danardi | 04/27/01 16:09 |
| RE: What about URL arguments?? | Loris Tissino | 04/27/01 00:52 |
| RE: keep it simple | Loris Tissino | 04/27/01 00:48 |
| RE: wget to the rescue | Loris Tissino | 04/27/01 00:46 |
| RE: just use the php binary! | Loris Tissino | 04/27/01 00:45 |
| RE: What about URL arguments?? | Thomas Donadt | 04/26/01 16:18 |
| RE: What about URL arguments?? | Andreas Bernhardsen | 04/25/01 10:36 |
| RE: wget to the rescue | Ali Driver | 04/25/01 07:26 |
| RE: just use the php binary! | DrTebi | 04/25/01 05:12 |
| RE: wget to the rescue | eric | 04/24/01 14:17 |
| RE: wget to the rescue | dave | 04/24/01 00:49 |
| RE: What about URL arguments?? | Thomas Donadt | 04/23/01 16:04 |
| just use the php binary! | Larry | 04/23/01 14:38 |
| Good Idea...Webserver,.XML Dynamics,c++ | John | 04/22/01 07:35 |
| No need for Lynx, use fopen(http://) | John Lim | 04/22/01 01:05 |
| I don't exactly get it | Miguel Cruz | 04/21/01 23:35 |
| What about URL arguments?? | Andy Dickinson | 04/21/01 19:29 |
| keep it simple | Tom | 04/21/01 12:57 |
| Lynx vs. other tools | Stralle | 04/20/01 20:26 |
| wget to the rescue | Scott Marlowe | 04/20/01 17:18 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


