Она влкючена.\n\n(Добавление)
Вот сам скрипт:
<?php
function get_content($link)
{
$fd = fopen($link, "r");
$text="";
if (!$fd) echo "Запрашиваемая страница не найдена";
else
{
// Чтение содержимого файла в переменную $text
while (!feof ($fd)) $text .= fgets($fd, 4096);
}
// Закрыть открытый файловый дескриптор
fclose ($fd);
return $text;
}
$text = get_content('https://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext=81.30.217.248');
echo $text;
?>
Что он выдает:
Notice: fopen() [function.fopen]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:TopServerwwwvirtualprimeip.php on line 8
Warning: fopen(https://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext=81.30.217.248) [function.fopen]: failed to open stream: Invalid argument in C:TopServerwwwvirtualprimeip.php on line 8
Запрашиваемая страница не найдена
Warning: fclose(): supplied argument is not a valid stream resource in C:TopServerwwwvirtualprimeip.php on line 17
\n\n(Добавление)
О, оказывается там можно и по http протоколу открыть станичку.
Но вопрос остается открытым, можно ли прочитать по https.
|