a guest Jan 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function getRecords($domain)
- $domain = strtolower($domain);
- $HostRecord = gethostbyname($domain);
- getmxrr($domain, $MXRecord);
- return array('domain' => $domain, 'host' => $HostRecord, 'mx' => $MXRecord); // what is MXRecord?
- $ret = getRecords($_POST['domain']);
- echo "The webpage is hosted on: " . $ret['$domain'] . "<br />";
RAW Paste Data