#!/usr/bin/env php '', 'xs' => "", 'notfromwhois' => '', 'domain' => $znak1.$znak2, 'tld' => "WS" ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://samoanic.ws/whois.dhtml', false, $context); if (strpos($result, 'Congratulations') !== false) { echo $znak1.$znak2.".ws <-- FREE\n"; } else { echo $znak1.$znak2.".ws <-- REGISTERED\n"; } } } ?>