RE: [PHP] storing html in a db
You might consider using output buffering in order to accomplish that goal. http://www.php.net/manual/en/ref.outcontrol.php You could buffer the entire page and store the buffer into the DB at the end of the page load. -Jared -Original Message- From: W. Enserink [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: [PHP] storing html in a db hi all, i was wondering, i'm making a php page. this php page is outputting a very lot of html to a browser. is it also possible to capture this html code and store it in a database? so later on i can retrieve a full html page without the dynamic elements in it thx Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing html in a db
Look at the output buffering section in the manual. Read the user comments. http://www.php.net/manual/en/ref.outcontrol.php ---John Holmes... - Original Message - From: W. Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:34 PM Subject: [PHP] storing html in a db hi all, i was wondering, i'm making a php page. this php page is outputting a very lot of html to a browser. is it also possible to capture this html code and store it in a database? so later on i can retrieve a full html page without the dynamic elements in it thx Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing html in a db
thx great tip:-) - Original Message - From: Jared Boelens [EMAIL PROTECTED] To: W. Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:41 PM Subject: RE: [PHP] storing html in a db You might consider using output buffering in order to accomplish that goal. http://www.php.net/manual/en/ref.outcontrol.php You could buffer the entire page and store the buffer into the DB at the end of the page load. -Jared -Original Message- From: W. Enserink [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: [PHP] storing html in a db hi all, i was wondering, i'm making a php page. this php page is outputting a very lot of html to a browser. is it also possible to capture this html code and store it in a database? so later on i can retrieve a full html page without the dynamic elements in it thx Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php