tee function in PHP
| From: | Karyn Stump | Date: | Mon, 26 Jan 2009 19:13:45 +0000 |
| Subject: | tee function in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287161@lists.php.net to get a copy of this message | ||
Hi all,
Sequence:
Form1: Display fields for user to input data and submit.
Form2: Show user the information they input on form1 and allow them to
print or email this form.
I inherited the scripts above. The second script displays the results in
the browser and also writes a file on the server in two steps. That file
(html) is then emailed if the user chooses to do so.
I would like to reduce this to one step by combining the writing of the
browser data and the file. Is there something like tee in PHP ?
Or should I start learning about output buffering control ? If so examples
would be great.
TIA,
--
Karyn Stump
Network Services Manager
California Institute of the Arts
karyn@calarts.edu
http://noc.calarts.edu