* You already have a valid Amazon Web Services developer account, and are signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>. * You already understand the fundamentals of object-oriented PHP. * You've verified that your PHP environment passes the SDK Compatibility Test. * You've already added your credentials to your config.inc.php file, as per the instructions in the Getting Started Guide. TO RUN: * Run this file on your web server by loading it in your browser, OR... * Run this file from the command line with `php cli-r53_get_hosted_zone.php`. */ /*%******************************************************************************************%*/ // SETUP // Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829 error_reporting(-1); // Set HTML headers header("Content-type: text/html; charset=utf-8"); // Include the SDK require_once '../../sdk.class.php'; /*%******************************************************************************************%*/ // GET HOSTED ZONE $route53 = new AmazonRoute53(); // You should replace this with a real Zone ID $zone_id = 'Z1PA6795UKMFR9'; // Send request! $response = $route53->get_hosted_zone($zone_id); // Display print_r($response);