I'm trying to build a basic domain to IP address translator, I have this code:
<?php $site=addslashes(strip_tags($_POST['site'])); $ipaddress = gethostbyname $site; echo "The IP address of $site is $ipaddress"; ?>
But It returns this error when I submit the form I created:
Parse error: parse error, unexpected T_VARIABLE in /home/calumla/public_html/processip.php on line 97
Line 97, with my HTML is this:
$ipaddress = gethostbyname $site;
All help is appriciated, thanks!