Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

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.

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

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



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Car Credit | Mortgage Calculator | Car Insurance | Mobile Phones | Loan
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp