Re: I need to create html files from php files using php

From: Dennis (mcderd_at_yahoo.com)
Date: 10/26/04


Date: 26 Oct 2004 02:22:56 -0700

Thanks for your response.

It is only a few include files that I want to turn static each time
their content changes, perhaps a couple of times a week, but each of
these pages makes database calls, so if I leave them dynamic the
system will be repeatedly making demands on the database for every
page on my site as some of these includes are in the header.

I need to be able to do this from within a php page rather than from
the command line, so Pedro's solution seems to fit.

Dennis

Anonymous <anonymous@nowhere.invalid> wrote in message news:<417D8A0B.F9ACC726@nowhere.invalid>...
> Dennis wrote:
>
> > I am now converting the site to PHP as I want to use mod_rewrite, what
> > I need is a routine that I can pass a php file to and end up with an
> > HTML version.
>
> I don't know a routine but a program that does what you want. It's
> called php.exe. ;-)
>
> php.exe -q filename.php > filename.html
>
> This command will create the HTML page which the script would create
> when it is run on a server. But that would make the page static.
>
> The whole point of server side scripting is to have dynamic pages that
> can change with user input, database content, etc., so I don't think
> making your pages static is a really good idea. Except if the server is
> heavily accessed and the content of your pages don't change too often.
> Then making everything static might make sense to reduce server load.
>
> Bye!



Relevant Pages

  • Re: Get custom database properties from an Access database
    ... It doesn't matter if the VBScript process drags, since it is an independent process and so will have no effect on the user's interaction with the database. ... The user can skip merrily along, doing whatever he needs while the script invisibly figures out the current situation in the background and decides what to do about it. ... It does, but I've run into issues other places on this same network, where users needed a drive letter to a server. ...
    (microsoft.public.scripting.vbscript)
  • Re: Get custom database properties from an Access database
    ... will write the script to look for an available letter, ... If you're concerned about another drive letter causing ... will have no effect on the user's interaction with the database. ... As for the server, yes, that would definitely be the way to go. ...
    (microsoft.public.scripting.vbscript)
  • Re: Get custom database properties from an Access database
    ... write the script to look for an available letter, ... If you're concerned about another drive letter causing ... will have no effect on the user's interaction with the database. ... As for the server, yes, that would definitely be the way to go. ...
    (microsoft.public.scripting.vbscript)
  • Re: db repair
    ... Server. ... VB Script looks amazingly like VBA, since they're both based upon the same ... See http://www.mvps.org/access/general/gen0041.htm for the VBA code to ... this won't compact the database ...
    (microsoft.public.access.setupconfig)
  • Re: Accessing an Unnamed HTML element
    ... it's a processing directive to some server side application. ... What actually appears in the document that the web browser receives is ... The database query could be generating any amount of non block level html ...
    (comp.lang.javascript)