|
Posted by Kurrent on 07/05/07 03:49
On Jul 4, 9:41 pm, ZeldorBlat <zeldorb...@gmail.com> wrote:
> On Jul 4, 11:33 pm, Kurrent <kurr...@gmail.com> wrote:
>
> > i have some data in a variable ($message) that is being emailed with
> > the php's mail() function (an html email actually)...i'd like to also
> > take that html data in the $message variable and have my script also
> > make a new .html (with any random name) file on my server with that
> > $message data, any easy way to do that? Cheers!
>
> Suppose you have the HTML you want to store in a variable called $html
> and you want to put it in a file called foo.html. Then you would do
> something like this:
>
> file_put_contents('foo.html', $html);
worked like a charm, thanks ZeldorBlat!
[Back to original message]
|