2022-06-06 21:30:34 +00:00
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<?
|
|
|
|
|
|
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
|
// Получаем массив с информацией о версии curl
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//$version = curl_version();
|
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
|
// Рто битовые поля, которые можно использовать
|
|
|
|
|
// для проверки возможностей сборки curl
|
2022-06-06 21:30:34 +00:00
|
|
|
|
/*
|
|
|
|
|
$bitfields = Array(
|
|
|
|
|
'CURL_VERSION_IPV6',
|
|
|
|
|
'CURL_VERSION_KERBEROS4',
|
|
|
|
|
'CURL_VERSION_SSL',
|
|
|
|
|
'CURL_VERSION_LIBZ'
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($bitfields as $feature)
|
|
|
|
|
{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo $feature . ($version['features'] & constant($feature) ? ' есть' : ' нет');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
echo PHP_EOL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//echo $_SERVER['HTTP_CF_CONNECTING_IP']."<br>";
|
|
|
|
|
//echo $_SERVER['HTTP_USER_AGENT'];
|
|
|
|
|
*/
|
|
|
|
|
phpinfo();
|
|
|
|
|
#curl_getinfo();
|
|
|
|
|
|
|
|
|
|
?>
|