(PHP 4 >= 4.1.0, PHP 5)

ircg_fetch_error_msg --  Returns the error from previous IRCG operation


array ircg_fetch_error_msg ( resource connection)

ircg_fetch_error_msg() returns the error from a failed connection.

Note: Error code is stored in first array element, error text in second. The error code is equivalent to IRC reply codes as defined by RFC 2812.

Example 1. ircg_fetch_error_msg() example

if (!ircg_join ($id, "#php")) {
$error = ircg_fetch_error_msg($id);
"Can't join channel #php. Error code:
[0] Description: $error[1]";

Sites of interest: Web Hosting : Reseller Hosting : Website Hosting : HTML Editor : Web Design Templates : Free Web Hosting : ASP code examples : PHP & MySQL Code Examples
  Copyright 2004 Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft