PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ircg_get_username> <ircg_eval_ecmascript_params
Last updated: Sun, 25 Nov 2007

view this page in

ircg_fetch_error_msg

(PHP 4 >= 4.0.7, PHP 5 <= 5.0.5)

ircg_fetch_error_msg — Returns the error from previous IRCG operation

Popis

array ircg_fetch_error_msg ( resource $connection )

ircg_fetch_error_msg() returns the error from a failed connection.

Parametre

connection

A connection resource handle returned by ircg_pconnect().

Vrátené hodnoty

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.

Príklady

Example#1 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]"
;
}
?>



add a note add a note User Contributed Notes
ircg_fetch_error_msg
There are no user contributed notes for this page.

ircg_get_username> <ircg_eval_ecmascript_params
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites