See also:
| Service | Type | RAM | Storage | Limitations |
|---|---|---|---|---|
| 👉 Adaptable | PaaS | 256 MB | Non-persistent? (1 GB database storage available) | |
| AWS EC2 | IaaS | 1 GB |
| <p>Dear {$client_name},</p> | |
| <p><strong>PLEASE PRINT THIS MESSAGE FOR YOUR RECORDS – PLEASE READ THIS EMAIL IN FULL.</strong></p> | |
| <p>We are pleased to inform you that the VPS you ordered has been set up.</p> | |
| <p><strong>Server Details<br /></strong>=============================</p> | |
| <p>{$service_product_name} - <a title="Manage {$service_product_name}" href="{$whmcs_url}clientarea.php?action=productdetails&id={$service_id}" target="_blank" rel="noopener">Click to Manage</a></p> | |
| <p>ServerName: {$service_domain}<br />Main IP: {$service_dedicated_ip}<br />Root pass: {$service_password}<br />{if $service_assigned_ips} IP Address Allotted: {$service_assigned_ips} {/if}</p> | |
| <p><strong>Client Area<br /></strong>=============================</p> | |
| <p>Manage Service from Client Area: <a href="{$whmcs_url}clientarea.php?action=productdetails&id={$service_id}">Click Here</a></p> | |
| <p><strong>Manager Details<br /></strong>=============================</p> | |
| <p>URL: <a>https://{$service_server_hostname}:4083</a><br />Username: |
| // No errors | |
| { | |
| "error":0, | |
| "short":"http:\/\/webz.cc\/DkZOb" | |
| } | |
| // An error has occurred | |
| { | |
| "error":1, | |
| "msg":"Please enter a valid URL" | |
| } |
| <?php | |
| // Using JSON Response | |
| $api_url="http://webz.cc/api?key=APIKEY&url=THELONGURLTOBESHORTENED&custom=CUSTOMALIAS"; | |
| $res= @json_decode(file_get_contents($api_url),TRUE); | |
| if($res["error"]){ | |
| echo $res["msg"]; | |
| }else{ | |
| echo $res["short"]; | |
| } |
| <?php | |
| define("SHORTENER_URL", "http://webz.cc"); | |
| define("SHORTENER_KEY", "123456789"); | |
| /**** Sample PHP Function ***/ | |
| function shorten($url, $custom = "", $format = "json") { | |
| $api_url = SHORTENER_KEY."/api/?key=".SHORTENER_KEY; | |
| $api_url .= "&url=".urlencode(filter_var($url, FILTER_SANITIZE_URL)); | |
| if(!empty($custom)){ |
| GET http://webz.cc/api?key=APIKEY&url=THELONGURLTOBESHORTENED&custom=CUSTOMALIAS |