HTTP_SUPPORT(3) 1 HTTP_SUPPORT(3)
http_support - Check built-in HTTP support
SYNOPSIS
int http_support ([int $feature])
DESCRIPTION
Check for features that require external libraries.
See the feature support constants table for possible values for the $feature argument.
PARAMETERS
o $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(3) example
<?php
if (!http_support(HTTP_SUPPORT_REQUESTS)) {
die("Need HTTP request support!
");
}
?>
PHP Documentation Group HTTP_SUPPORT(3)