Re: Dynamic pages
| From: | Aaron Tuller | Date: | Fri, 16 Mar 2001 07:43:51 +0000 |
| Subject: | Re: Dynamic pages | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44238@lists.php.net to get a copy of this message | ||
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 <jason@volta.net> Newsgroups: php.general Sent: Tuesday, March 13, 2001 7:45 AM Subject: [PHP] Dynamic pagesI 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net