Skip to content

nathanlegroux/simply-get-domain-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Get google.com domain's ip with $_GET request named "domain"

<?php if (empty($_GET["domain"]))
{
    $domain = 'google.com';
}
else
{
    $domain = $_GET["domain"];
}
$x = gethostbyname($domain);

echo $x;

?>



Get google.com domain's ip with $_POST request named "domain"

<?php if (empty($_POST["domain"]))
{
    $domain = 'google.com';
}
else
{
    $domain = $_POST["domain"];
}
$x = gethostbyname($domain);

echo $x;

?>

About

Simply get a domain ip !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published