Re: [PHP] Saving Dynamically Generated Pages
It appears this function is only available for PHP4+. I have been trying to stay compatible with PHP3 but maybe I should abandon this requirement. Do you know of any URLs that may provide stats on versions of PHP in use? Thanks, Chris Wolfram Kriesing wrote: > > Im considering writing all the update information to a datafile > > before displaying it to the user, say through an include(); What I > > would like to do is direct the output (all my prints) to that > > report file. It seems though that I might have to go through my > > code and explicitly use fputs to accomplish this task. > > have a look at "output buffering" >http://www.php.net/manual/en/function.ob-start.php > this way you can send output you actually send to the browser save in > a buffer and do with it whatever u want :-) > > -- > Wolfram -- 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]
Re: [PHP] Saving Dynamically Generated Pages
> Im considering writing all the update information to a datafile > before displaying it to the user, say through an include(); What I > would like to do is direct the output (all my prints) to that > report file. It seems though that I might have to go through my > code and explicitly use fputs to accomplish this task. have a look at "output buffering" http://www.php.net/manual/en/function.ob-start.php this way you can send output you actually send to the browser save in a buffer and do with it whatever u want :-) -- Wolfram -- 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] Saving Dynamically Generated Pages
Im using PHP to allow a user to update several MySql records in a batch process. During the update I print to the browser information about the update (records deleted, added, changed etc.). What I would like to do is also save this report so the user can access it at a later time. Im considering writing all the update information to a datafile before displaying it to the user, say through an include(); What I would like to do is direct the output (all my prints) to that report file. It seems though that I might have to go through my code and explicitly use fputs to accomplish this task. Any suggestions welcome. Thanks, Chris -- 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]