Re: streams reference

From: Date: Fri, 03 Jan 2003 06:45:50 +0000
Subject: Re: streams reference
References: 1 2  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-93061@lists.php.net to get a copy of this message
>--Cross-Post from php-doc discussion thread-- > > You may want to mention what the following means, this is > from a phpinfo() on www.php.net: > > Registered PHP Streams: http > php > ftp > https > compress.zlib > I mention using phpinfo() to see what wrappers are available, but not detail on all the builtin streams. I've got references (w/ links) to Apendix I for that. > Is there a function to get this specific information? Would > that be useful? Maybe something like get_registered_streams(). > That does sound like it'd be useful... Unfortunately there isn't a userland function for that. There *IS* however, a PHPAPI call for it: PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash(); It wouldn't take much to make a userland wrapper for it since it already returns a hash table... stream_get_wrappers(); sounds like an appropriate name > When are certain streams not available, like, I assume > allow_url_fopen dictates the availability of the http stream? > FTP module for ftp, etc. > This is all documented in Apendix I (which is linked a couple times from ref.stream), do you think we need to go into it in detail on ref.stream as well? -Pollita Cross posting to php-dev re: addition of stream_get_wrappers() addition.

« previous php.dev (#93061) next »