Hi,
Why GetHostbyName() isn't work after str_replace() ??
<?php
// HERES CODE...
$urlwithhttp = "http://www.php.net";
$urlnohttp = str_replace("http://"," ",$url);
echo "Heres URL with http: $urlwithhttp <br>";
echo "Heres URL without http: $urlnohttp <br><br>";
$whatsurlip = gethostbyname($urlnohttp);
echo "This SHOULD be URLs IP-address: $whatsurlip<br>";
?>