http_support

(no version information, might be only in CVS)

http_support -- Check 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");
}
?>


Follow phpf1 on Twitter




F1 Site Family
AJAX F1
CSS F1
Database F1
Flash F1
HTML F1
Java F1
JavaScript F1
PhotoShop F1
PHP F1
Scripts F1
Tutorial F1
Windows F1

Total time: 0.0406