IT. Expert System.

PHP

Retrieve list of registered streams


stream_get_wrappers

(PHP 5)

stream_get_wrappersRetrieve list of registered streams

Description

array stream_get_wrappers ( void )

Retrieve list of registered streams available on the running system.

Return Values

Returns an indexed array containing the name of all stream wrappers available on the running system.

Examples

Example #1 stream_get_wrappers() example

<?php
print_r
(stream_get_wrappers());
?>

The above example will output something similar to:

 Array (  [0] => php  [1] => file  [2] => http  [3] => ftp  [4] => compress.bzip2  [5] => compress.zlib ) 

Example #2 Checking for the existence of a stream wrapper

<?php
// check for the existence of the bzip2 stream wrapper
if (in_array('compress.bzip2'stream_get_wrappers())) {
    echo 
'compress.bzip2:// support enabled.';
} else {
    echo 
'compress.bzip2:// support not enabled.';
}
?>

See Also



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1714 / . Delta: 0.01849 с