Re: Output to File Instead of Browser
| From: | Jim Giner | Date: | Tue, 20 Aug 2013 18:25:21 +0000 |
| Subject: | Re: Output to File Instead of Browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321917@lists.php.net to get a copy of this message | ||
On 8/20/2013 12:38 PM, Floyd Resler wrote:
I have a php file that generates a form. Of course, this displays in the browser. How can I have the form generated from my script but either saved to a file or the output returned to another script? Thanks! Floyd Store your generated web page (from !<doctype to </html>) in a variable. Then either use file_put_contents or save the var to a session one and call the next script.That's what I would do, if I ever found myself needing to do such a thing.