Re: [PHP-DEV] streams and options

2002-04-19 Thread Wez Furlong
On 19/04/02, "l0t3k" <[EMAIL PROTECTED]> wrote: > Wez, > scream at me if it seems dumb, but in my never-finished extension, > each plugin accepts an option hash in the init callback which is used > to set up the object. the framework also stores this hash as an member > of the object, and th

Re: [PHP-DEV] streams and options

2002-04-19 Thread l0t3k
Wez, scream at me if it seems dumb, but in my never-finished extension, each plugin accepts an option hash in the init callback which is used to set up the object. the framework also stores this hash as an member of the object, and there are accessor methods to query the options. this keep

Re: [PHP-DEV] streams and options

2002-04-19 Thread Wez Furlong
Hi Derick, I'm leading up to be able to do this sort of thing, but want/need to discuss/brainstorm it here before I do much more to it. In a recent commit I added a context parameter to fopen. The context is intended to hold these kind of options, plus other data that is or will be relevant to

[PHP-DEV] streams and options

2002-04-19 Thread Derick Rethans
Hey Wez, I wonder if it is possible to set options after a stream has been opened. Something like: $fp = fopen ("crypt.des://secretfile.des", "r"); stream_option ($fp, "key", "very secret key"); And if it's there, is there an example in the source of it? regards, Derick -- PHP Development