PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

http_support

(PECL pecl_http >= 0.15.0)

http_supportCheck built-in HTTP support

Description

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.

Parameters

feature

feature to probe for

Return Values

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

Examples

Example #1 A http_support() example

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

PHP Manual