Get IP with PHP

<?php

$names = file(‘sites.txt’);
foreach ($names as $name) {
$ip = gethostbyname($name);
echo ‘<li>’ . $ip . ‘</li>’;
}

?>

Published by

@XiaoKyun

双鱼男,过分热心的好人。