Reply to Re: file:// streams: writing a custom wrapper

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация