You are here: Re: have php create a new .html file on my server... « PHP Programming Language « IT news, forums, messages
Re: have php create a new .html file on my server...

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация