PHP 5.6.16 is available


(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.

Elenco dei parametri


feature to probe for

Valori restituiti

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


Example #1 A http_support() example

if (!http_support(HTTP_SUPPORT_REQUESTS)) {
"Need HTTP request support!\n");

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top