<?php /** * This example gets information about a webhosting package. * * @copyright Copyright 2011 TransIP BV * @author TransIP BV <*****@*****.**> */ require_once 'Transip/WebhostingService.php'; if (isset($_GET['domain']) && strlen($_GET['domain']) > 0) { $domainName = $_GET['domain']; try { // Request information about a domain in your account by using the TransIP // WebhostingService API; A WebHost Object will be returned holding all // information available about the domain. $domain = Transip_WebhostingService::getInfo($domainName); // INFO: A WebHost object holds all data directly available for a domain: // + it has a list of MailBoxes, // + a list of Cronjobs // + a list of Dbs // + a list of MailForwards // + a list of subDomains // $result = 'We got the following information about the domain ' . htmlspecialchars($domainName) . ':'; } catch (SoapFault $e) { // It is possible that an error occurs when connecting to the TransIP Soap API, // those errors will be thrown as a SoapFault exception. $result = 'An error occurred: ' . htmlspecialchars($e->getMessage()); } } else { $domainName = '';