MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Chad Cunningham Date:May 8 1999 2:43pm
Subject:Re: [PHP3] Generating Static Files
View as plain text  
The simplest thing to do is to compile a php bianary on your system, use the same
script as is dynamically generating the page now, but croning it to run every x
minutes and redirecting the output to a static file. Something like

#!/usr/local/bin/php -q
dymanic script;

then use cron to run it as

/path/to/sciprt.php3 > /path/to/static.html

Maybe not the most elegant solution, but it's simple and it works.

Richard McLean wrote:

> Hi All,
> I have a site which is using MySQL & PHP to dynamically insert database
> information into pages and was wondering if anyone knows of a solution
> available for generating static files with the information instead.
> The information isn't changing as much as we thought that it would, and I
> would like to get around the added overhead of it being dynamic.
> I know that this probably isn't that difficult to do, but it is outside of
> my level of knowledge with either PHP or Perl right now.
> Anyone know of an already built server-side solution to do this (free or
> commercial)?
> kind regards,
> Richard McLean
> --
> PHP 3 Mailing List
> To unsubscribe send an empty message to php3-unsubscribe@stripped
> To subscribe to the digest list:  php3-digest-subscribe@stripped
> For help: php3-help@stripped  Archive:
> List administrator:  zeev-list-admin@stripped


Chad Cunningham

Generating Static FilesRichard McLean8 May
  • Re: [PHP3] Generating Static FilesChad Cunningham8 May
  • Re: Generating Static FilesSasha Pachev8 May
  • Generating Static Filesterry jones9 May