Re: cvs: php4 /ext/standard file.c
| From: | pollita@php.net | Date: | Tue, 08 Apr 2003 15:34:58 +0000 |
| Subject: | Re: cvs: php4 /ext/standard file.c | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-789@lists.php.net to get a copy of this message | ||
I'm trying not to do too much all at once...but yes, file_set_contents (now
file_put_contents???) is on my list.
There is one thing I wanted to discuss in that regard though... What do you
think of a "default context"?
<?php
$opts = array(array(....));
$context = stream_context_create($opts);
stream_context_default($context);
/* All stream related functions [fopen, file_get_contents, readfile, file,
file_put_contents, etc...] will now use $context by default unless
explicitly overridden */
.....
.....
?>
-Pollita
"Wez Furlong" <wez@thebrainroom.com> wrote in message
news:Pine.LNX.4.53.0304081226120.13015@zaneeb.brainnet.i...
> And file_set_contents() too?
>
> --Wez.
>
> On Tue, 8 Apr 2003, Sara Golemon wrote:
>
> > pollita Mon Apr 7 20:02:47 2003 EDT
> >
> > Modified files:
> > /php4/ext/standard file.c
> > Log:
> > Add context support to file_get_contents