How get block with data from remote html?
Good day.
For get remote html i use code:
$file = file_get_contents('http://who.is/whois/abate.com');
libxml_use_internal_errors(true); //Prevents Warnings, remove if desired
$dom = new DOMDocument();
$dom->loadHTML($file);
And i get html:
<table>
<tbody>
<tr>
<th>Expires On</th>
<td><span data-bind-domain="expiration_date" style="visibility:
visible;">November 28, 2015</span></td>
</tr>
<tr>
<th>Registered On</th>
<td><span data-bind-domain="expiration_date" style="visibility:
visible;">June 03, 1995</span></td>
</tr>
<tr>
<th>Updated On</th>
<td><span data-bind-domain="expiration_date" style="visibility:
visible;">June 01, 2013</span></td>
</tr>
</tbody></table>
I would like get:
1) date Expires On
2) date Registered On
3) date Updated On
Anyone have ideas how make it ?
No comments:
Post a Comment