PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of David Barnes   cPanel Tools   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: cPanel Tools
Manage cPanel hosting accounts
Author: By
Last change: Typo
Date: 16 years ago
Size: 871 bytes


Class file image Download
// Here is a quick example of how to use the class, read the top of the class file for
// the complete list of functions. Some functions do not return errors (due to cpanel not returning errors)
// Bear in mind that some functions may take awhile for cpanel to execute (like add addon domain), so it may
// not be the best idea to wait for a response.

$cpanel = new cPanelTools('username','password','');
// create email address
$errors = $cpanel->emailCreate('','mypass');
'Email Address was Created!';
'There was an error<br>';
// delete email (without bothering to collect the errors)
// Create subdomain