Re: [PHP] Output to File Instead of Browser

[email protected] (Serge Fonville)
Newsgroups php.general
Message-ID <CAOAS_+LX2qE810xdrEwzBQ-=jY8runcJFngQJTgvpQc0tgU1GQ@mail.gmail.com>
>
> How can I have the form generated from my script but either saved to a
> file or the output returned to another script?

if you just want to output the generated output of the script to a file you
can use output buffering http://www.php.net/manual/en/book.outcontrol.php

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/8/20 Bastien <[email protected]>

>
>
> On 2013-08-20, at 12:38 PM, Floyd Resler <[email protected]> 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
> >
>
> I guess it depends on how your code is structured. I have older coder
> where the HTML is all one string so a file_put_contents($html, $filename);
> works simply.
>
>
>
> Bastien Koert
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.