Re: Writing static file from dynamic PHP page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






Chris Bruce wrote:
> sorry for the repost, but my mail server was down from about 11pmEST
> last night to 9:15am this morning and unable to receive responses. Can
> someone forward me responses to this post if any? Thanks. Chris
>
>>> Hi,
>>>
>>> I am looking for a way to write to a file what the browser would see
>>> (raw html) when viewing a dynamic PHP page. I have numerous include
>>> files, MySQL db queries, loops etc. and I want to generate the static
>>> result of that file and save it as an html page. I have toyed a little
>>> with output buffering to no avail.
>>>
>>> Is there an easy way to do this?

Just build the site you want with PHP, and then use wget to suck down the
pages into your static directory.

Output buffering should have worked, but it's too easy for somebody else
to mess up the buffering if they want to use it for something else in
their business logic.

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux