Seems like some of the resources are old. Check domain availability. PHP
<p>Here is what I currently have to get the list of domains.</p>

<pre><code>&lt;?php
$myFile = "domains.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, 500);
fclose($fh);
echo nl2br($theData);
?&gt;
</code></pre>

<p>This fetches the file and lists the domains in an order like:</p>

<blockquote>
  <p>Domain.com </p>
  
  <p>Domain2.com</p>
  
  <p>Domain3.com</p>
</blockquote>

<p>I want to assign a function for each domain in the list to be ran through a whois query and if available post domain.com - available (later down the road I will have it run a API query to register) and if not available post domain.com - taken</p>

<p>Any idea where to get started?</p>
