Re: streams and options

From: Date: Fri, 19 Apr 2002 16:20:46 +0000
Subject: Re: streams and options
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-83026@lists.php.net to get a copy of this message
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 keeps it simple for me.. Wez Furlong wrote:
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.
Any comments? --Wez. On 19/04/02, "Derick Rethans" <d.rethans@jdimedia.nl> wrote:
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 Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#83026) next »