Guide to the LiveAPI System - The end() Method

Description

The end() method deconstructs the Cpanel::LiveAPI object and closes the connection to cPanel & WHM.

  • Only use this method once in any script or application.
  • Use this method after you have completed all of the actions that require a connection to cPanel & WHM.

Important:

  • For Perl applications, this method is required.
  • For PHP applications, this method is not required. We provide this method for backwards compatibility with LivePHP scripts. 

Example


LiveAPI PHP Class

1
2
// Disconnect from cPanel - only do this once.
$cpanel->end();




LiveAPI Perl Module

1
2
# Disconnect from cPanel - only do this once.
$cpanel->end();



Parameters

This method does not accept parameters.

Returns

This method does not return a value.

 

  • 14 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....