<?php
$domain = 'domain'; // домен без .by
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://domain.by/cgi-bin/registry.cgi");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "mode=slquest&domain=".$domain);
$result = curl_exec($ch);
curl_close($ch);
$pos = strpos($result, '<p class="domain_name">');
$result = substr($result, $pos);
$pos = strpos($result, '<div id="footer_block">');
$result = substr($result, 0, $pos);
$pos = strpos($result, '<p class="domain_name">');
$result = substr($result, $pos);
$pos = strpos($result, '</div>');
$result = substr($result, 0, $pos);
?>
<style>
p {margin: 0px;}
.domain_name{
font-size: 40px;}
.result_negative{
font-size: 40px;
color: red;}
.result_free{
font-size: 40px;
color: green;}
</style>
<center><?php echo $result;?></center>