Linux Systems Administrator
Jupitermedia
US-AZ-Tucson

Justtechjobs.com Post A Job | Post A Resume

Dynamic Generation Of Static Webpages
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 formsOlanrewaju, Michael Oluseyi02/28/05 14:25
about phpgaya02/16/05 03:08
The best php site copierLeonardo Forero02/28/03 22:34
RE: dynamic/static web sites?china_boy12/30/02 04:18
Need some advice please Dave McKergan05/09/02 09:04
RE: Use pavuk wget plus moreJames Wilford04/09/02 21:30
RE: dynamic/static web sites?Ellen Richardson02/27/02 12:06
what if you don't have linuxEdith12/06/01 09:13
dynamic/static web sites?John11/30/01 17:28
RE: wget to the rescueWhat if the site has passwords ?11/26/01 16:01
Url argument and javascript is solutionrachmadji wibowo Ph.D11/02/01 04:40
RE: What about URL arguments??-a solutionVladimir10/04/01 11:08
static and dynamicdavid10/03/01 16:14
lettersuhas09/15/01 10:48
Use pavuk wget plus moreA K08/22/01 06:39
RE: FrontpageNeil08/15/01 23:29
RE: What about URL arguments??Stephen Webb08/08/01 23:26
a different approach: Speeding up page loadsAlfredo Rahn07/31/01 05:55
IP Address configurationSaravanan07/31/01 02:37
RE: If you have mod_php you can use long URL'sRussel07/29/01 00:03
RE: If you have mod_php you can use long URL'sRussel07/28/01 23:56
RE: why re-invent the wheel?Raven07/11/01 09:52
RE: No need for Lynx, use fopen(http://)Bernhard Dreyer06/12/01 10:15
just run php directly manRadek Burkat06/11/01 12:10
If you have mod_php you can use long URL'sBill Peck06/07/01 16:39
RE: What about URL arguments??Rick05/25/01 07:52
static or dynamic?Ryan Thomas05/14/01 07:03
RE: wget to the rescuecertron05/13/01 09:10
RE: why re-invent the wheel?lanson05/07/01 23:57
Keep semi-static o r semi-dynamicTjin05/04/01 14:43
if your html on a web cd use javascript!!!Daniel05/02/01 15:24
why re-invent the wheel?foo05/02/01 07:57
Does anybody have a simple example?Ali Driver05/01/01 00:44
RE: wget to the rescueStefan Waidele04/30/01 21:29
RE: What about URL arguments??Jonathan Melhuish04/30/01 15:32
FrontpageTeo Danardi04/27/01 16:09
RE: What about URL arguments??Loris Tissino04/27/01 00:52
RE: keep it simpleLoris Tissino04/27/01 00:48
RE: wget to the rescueLoris Tissino04/27/01 00:46
RE: just use the php binary!Loris Tissino04/27/01 00:45
RE: What about URL arguments??Thomas Donadt04/26/01 16:18
RE: What about URL arguments??Andreas Bernhardsen04/25/01 10:36
RE: wget to the rescueAli Driver04/25/01 07:26
RE: just use the php binary!DrTebi04/25/01 05:12
RE: wget to the rescueeric04/24/01 14:17
RE: wget to the rescuedave04/24/01 00:49
RE: What about URL arguments??Thomas Donadt04/23/01 16:04
just use the php binary!Larry04/23/01 14:38
Good Idea...Webserver,.XML Dynamics,c++John04/22/01 07:35
No need for Lynx, use fopen(http://)John Lim04/22/01 01:05
I don't exactly get itMiguel Cruz04/21/01 23:35
What about URL arguments??Andy Dickinson04/21/01 19:29
keep it simpleTom04/21/01 12:57
Lynx vs. other toolsStralle04/20/01 20:26
wget to the rescueScott Marlowe04/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.