Re: Dynamic Site Methodology



On Sun, 29 May 2005 18:05:18 GMT, bruce@xxxxxxxxxx (Bruce) wrote:

>1. Make all the pages php and query and create pages on the fly as needed
>by the users.
>
>2. Setup a cron task to call a php script and generate all the html pages
>once a day during some low usage period.

I do #3:

3. Make all pages php and query and create pages on the fly as needed
but cache the results and display the cached result for all subsequent
users if the content hasn't changed.

The reason for this is that while content can change infrequently it's
also unpredictable about when it does change. With a cron task,
changes to the site are not immediate. Also, most of the pages are
custom to each user in some degree (displaying whether or not they are
logged in) even if the content is static. We also rotate ads which is
another reason for keeping the pages at least partially dynamic.

.



Relevant Pages

  • Re: Dynamic Site Methodology
    ... Make all the pages php and query and create pages on the fly as needed ... >but cache the results and display the cached result for all subsequent ... >another reason for keeping the pages at least partially dynamic. ...
    (comp.lang.php)
  • Re: Making groups
    ... It's actually the native array type in PHP. ... One more reason to avoid PHP. ... I've been doing database stuff since oracle cost $100K a seat. ... They're actually exceedingly useful once you get used to them. ...
    (comp.lang.tcl)
  • Re: Confused by mysqli
    ... When I started using MySQL with Perl back in 1998, ... fetch_assocon a query I prepared with bind variables, ... So I had it print out its eval string that it was trying to run. ... PHP will fail to run at all, because bind_result will not have enough ...
    (comp.lang.php)
  • Re: [PHP] PHP & MySQL Problem
    ... [PHP] PHP & MySQL Problem ... > actually there seems to be no problem with your query (besides that you ...
    (php.general)
  • Re: Beginner Projects
    ... it would be too large starting out as a beginner PHP programmer. ... regulations requiring this and students challenging their grades etc ... will also need to be familiar with SQL (a database language). ... Is there a reason why you ...
    (comp.lang.php)