All pastes #386848 Raw Edit

poppabear

public php v1 · immutable
·published 2007-03-08 22:34 UTC
rendered paste body
		<?php 	$string = "$domain$tld";	$site = file_get_contents("http://isfree.schlundtech.de/cgi-bin/isfree.cgi?domain=$string&lang=EN");	if (!$check) { $results = ""; } else {		$findme  = "The domain $string is still available";		$pos = strpos($site, $findme);			if ($pos !== false) {				$results = "$string is Available";			} else {			$results = "$string is Not Available";			} 	}	?>	<form action="<?php echo $PHP_SELF; ?>" method="post">	  <span class="style24">Check Domain Availability </span>Domain: 	  <input type="text" name="domain" />&nbsp;	  <select name="tld">	  <option name=".com" value=".com">.com</option>	  <option name=".net" value=".net">.net</option>	  <option name=".org" value=".org">.org</option>	  </select>&nbsp;&nbsp;&nbsp;	  <input type="submit" name="check" value="Check" />&nbsp;&nbsp;&nbsp;	  <?php echo "$results"; ?>  	</form>