you don't have to use fwrite() if you use output buffering.

just ob_start(), ob_get_contents(), and ob_end_clean()

and leave your code how it is.

-aaron

At 1:02 AM -0600 3/16/01, Richard Lynch wrote:
>You can use PHP to write out the HTML to a file, instead of using
>echo/print.
>
>You'll have to fwrite() *ALL* your HTML, however.
>
>I did this for a site that got burned into a CD once.
>
>There are also some tools "out there" to "walk" a site and "steal" it, that
>you could use on your "work" site to snag all the HTML output.
>
>--
>Visit the Zend Store at http://www.zend.com/store/
>Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
>Volunteer a little time: http://chatmusic.com/volunteer.htm
>----- Original Message -----
>From: Jason Mockler <[EMAIL PROTECTED]>
>Newsgroups: php.general
>Sent: Tuesday, March 13, 2001 7:45 AM
>Subject: [PHP] Dynamic pages
>
>
>>  I have some dynamic pages which pull
>>  content from a DB using a PHP function.
>>
>>  I have just found out that the production server
>>  for the project won't allow MySQL/PHP.
>>
>>  The editors will need to use the input tool
>>  on a test server and then FTP to the
>>  production server.
>>
>>  What I need to know is how do I save each
>>  page as static HTML when the page update has
>>  taken place (html is in DB)
>>
>>  Code in each page(body text) is:
>>
>>  <?
>>   require("lib/dbconnect.html");
>>   dbConnect();
>>
>>   require("lib/echocontent.html");;
>>   echoContent(1);
>>  ?>
>>
>>  Thanks in advance,
>>
>>  JM
>>
>>  --
>>  PHP General Mailing List (http://www.php.net/)
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>  To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to