Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : IRC Gateway Functions : ircg_fetch_error_msg

ircg_fetch_error_msg

Returns the error from previous IRCG operation (PHP 4 >= 4.0.7, PHP 5 <= 5.0.5)
array ircg_fetch_error_msg ( resource connection )

ircg_fetch_error_msg() returns the error from a failed connection.

Parameters

connection

A connection resource handle returned by ircg_pconnect().

Return Values

Returns an indexed array where the error code is stored in first element, and the error text in second.

The error code is equivalent to IRC reply codes as defined by RFC 2812.

Examples

Example 1093. ircg_fetch_error_msg() example

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


Change Language


Follow Navioo On Twitter
ircg_channel_mode
ircg_disconnect
ircg_eval_ecmascript_params
ircg_fetch_error_msg
ircg_get_username
ircg_html_encode
ircg_ignore_add
ircg_ignore_del
ircg_invite
ircg_is_conn_alive
ircg_join
ircg_kick
ircg_list
ircg_lookup_format_messages
ircg_lusers
ircg_msg
ircg_names
ircg_nick
ircg_nickname_escape
ircg_nickname_unescape
ircg_notice
ircg_oper
ircg_part
ircg_pconnect
ircg_register_format_messages
ircg_set_current
ircg_set_file
ircg_set_on_die
ircg_topic
ircg_who
ircg_whois
eXTReMe Tracker