PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<ircg_eval_ecmascript_paramsircg_get_username>
Last updated: Mon, 16 Jul 2012

ircg_fetch_error_msg

(PHP 4 >= 4.1.0, PHP 5)

ircg_fetch_error_msg --  Returns the error from previous IRCG operation

Description

array ircg_fetch_error_msg ( resource connection )

ircg_fetch_error_msg() returns the error from a failed connection.

注: 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.

例子 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]";
}
?>




<ircg_eval_ecmascript_paramsircg_get_username>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST