[PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
Hello, Suppose I have a php file that output certain HTML given certain parameters. So I can call it likt http://localhost/myscript.php?foo=bar I can include it from other page using include('myscript.php?foo=bar') But how can I instead capture the output of the include to variable and mail

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 18:37, lines prefixed by '' were originally written by you. But how can I instead capture the output of the include to variable and mail it, something like $msg = include('myscript.php?foo=bar) Use output buffering...

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
On Tuesday 22 July 2003 01:43 pm, David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 18:37, lines prefixed by '' were originally written by you. But how can I instead capture the output of the include to variable and mail it, something

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 18:57, lines prefixed by '' were originally written by you. Thanks. Will the same method works for a dynamically generated image using php? Suppose that myscript.php output JPEG instead of HTML. RDB Yes that will work