http_support

(PECL pecl_http >= 0.15.0)

http_supportCheck built-in HTTP support

Описание

int http_support ([ int $feature = 0 ] )

Check for features that require external libraries.

See the feature support constants table for possible values for the feature argument.

Список параметров

feature

feature to probe for

Возвращаемые значения

Returns integer, whether requested feature is supported, or a bitmask with all supported features if feature was omitted.

Примеры

Пример #1 A http_support() example

<?php
if (!http_support(HTTP_SUPPORT_REQUESTS)) {
    die(
"Need HTTP request support!\n");
}
?>

Коментарии

404 Not Found

404 Not Found


nginx

    Поддержать сайт на родительском проекте КГБ