11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoCHAPTER 16 • NETWORKINGArray ([0] => Array ([host] => example.com[type] => A[ip] => 192.0.32.10[class] => IN[ttl] => 169874 )[1] => Array ([host] => example.com[type] => NS[target] => a.iana-servers.<strong>net</strong>[class] => IN[ttl] => 162063 )[2] => Array ([host] => example.com[type] => NS[target] => b.iana-servers.<strong>net</strong>[class] => IN [ttl] => 162063 ))If you were only interested in the address records, you could execute the following:This returns the following:Array ([0] => Array ([host] => example.com[type] => A[ip] => 192.0.32.10[class] => IN[ttl] => 169679 ))Retrieving MX RecordsThe getmxrr() function retrieves the MX records for the domain specified by hostname. Its prototypefollows:boolean getmxrr(string hostname, array &mxhosts [, array &weight])335

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!