Sep
17
2010
stream_get_wrappers()

stream_get_wrappers

(PHP 5)

stream_get_wrappers -- Retrieve list of registered streams

Описание

array stream_get_wrappers ( void )

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


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

Результатом выполнения данного примера будет что-то подобное:

Array

(

    [0] => php

    [1] => file

    [2] => http

    [3] => ftp

    [4] => compress.bzip2

    [5] => compress.zlib

)


Пример 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 stream_wrapper_register().

 
 
 
Комментарии
Добавить новый Поиск
Оставить комментарий
Имя:
Email:
 
Веб-сайт:
Тема:
UBB-Код:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Пожалуйста, введите проверочный код, который Вы видите на картинке.
Powered by !JoomlaComment 3.26

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Кто онлайн

Сейчас 22 гостей онлайн