Posted by Julien Biezemans on 05/19/06 22:06
Chung Leong wrote:
> Julien Biezemans wrote:
>> I know, that's tricky. But I'm convinced that PHP could improve its
>> stream wrappers support by supplying built-in wrapper classes. At the
>> moment, being able to register a custom file:// scheme handler is almost
>> of no use at all as there is now way to actually read and write the
>> files within the custom wrapper.
>
> Have you try stream_wrapper_restore()? The idea is to restore the
> original wrapper, open the file, then unregister it again.
>
Eurêka! Am I an idiot or what? Sometimes we look for complex solutions
while there is an easy one :)
I guess it will work. I'm going to try this tonight.
Thank you !
Julien.
[Back to original message]
|