Re: file_put_contents() / file_add_contents() ?
| From: | Derick Rethans | Date: | Fri, 21 Feb 2003 10:00:51 +0000 |
| Subject: | Re: file_put_contents() / file_add_contents() ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94428@lists.php.net to get a copy of this message | ||
On Fri, 21 Feb 2003, Sascha Schumann wrote:
> > I think a counterpart for file_get_contents in the form of a plain
> > file_put_contents would be welcome.
>
> Don't tell me that
>
> <?php file_write_content('foobar.txt', 'foo!',
> file_exists('foobar.txt'));
I meant a *plain* file_put_contents:
<?php file_put_contents('foobar.txt', $content); ?>
Derick
--
Stop mad cowboy disease!
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------