Hi all, Is it possible to get the ip from a specified url? So I make a form with a text field and a submit button, fill in a url (http://www.yahoo.com), click submit and get the ip. Hope someone has a sollution for this, thx in advance.
Could you exec() ping?
and how exactly?
<?php $host = "google.com"; $result = exec("ping $host"); echo "$result"; ?>
http://www.php.net/manual/en/function.gethostbyname.php
Thx a lot, you solved a big problem for me. You've made my day!!! 😃