On Wed, 2003-10-08 at 08:56, Veniamin Goldin wrote:
> Dear All,
> 
> Does anybody have any solutions, which makes possible to produce static pages of all 
> dynamic cms once a day and  can be easily integrated into already made site?
> 
> 
> Thank you.

I have been thinking of doing such thing for a while and have two
possible solutions.

One is to have a master object and have a variable to set the mode of
operation (i.e. Dynamic, Static) You would then abstract all your output
(echo etc.) functions.  This new echo function would either output in
the normal way or to a file handler depending on the $static_dynamic
variable.  You would then have a master function which crawls your site
calling all the pages.  

The other solution involved using a function which captures all browser
i/o into a variable rather than sending it to the screen (cant remember
its name).  Not as sure how to implement this.

Basically if you have not written your CMS using objects it will be a
lot harder.  One of the reasons I am not generating static snapshots it
the CMS I wrote was not originally written without objects.  I am slowly
rewriting it and when finished I will revisit this issue.

Ben

-- 
****************************************************************
* Ben Edwards           Tel +44 (0)1179 553 551  ICQ 42000477  *
* Homepage - nothing of interest here   http://gurtlush.org.uk *
* Webhosting for the masses         http://www.serverone.co.uk *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Fun corporate graphics             http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
****************************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to