All pastes #549036 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-07 23:26 UTC
rendered paste body
<?php
$domain = htmlspecialchars($_POST['domain']);
$ext = htmlspecialchars($_POST['ext']);
$subject = file_get_contents("http://www.checkdomain.com/cgi-bin/checkdomain.pl?domain=www.$domain.$ext");
if (preg_match("/has already been registered/", $subject)) {
echo "The domain you requested, <b>http://www.$domain.$ext</b> is not avaliable.";
}
else {
echo "The domain you requested, <b>http://www.$domain.$ext</b> is avaliable!!";
}
?>