$msg = exec("nslookup -retry=4 -timeout=2 -type=mx $host 2>&1"); // $host is an email server domain
echo "results for \"nslookup -retry=4 -timeout=2 -type=mx $host\": " . $msg . " and that is all\n<P><P>";
I am trying to do an MX NSLOOKUP via PHP and while this works via command line with no problem, I am unable to reproduce the results via browser. Any thoughts?
Thanx
Phil