skip to Main Content

Using PHP variable in dns_get_record?

I'm getting an error with this code: $type = "DNS_" . strtoupper($_GET['type']); $array = dns_get_record($domain, $type); Helpful info: $_GET['type'] = "a" If I enter DNS_A in dns_get_record, the code works. But when entering $type, I get an error. The type…

VIEW QUESTION
Back To Top
Search