'') $replyType = 'RAW REPLY: '; else $replyType = "No Reply available."; } $messageToSend = sprintf( "STATUS: %d\nERROR INFO: %s\nREQUEST: \n%s\n%s\n$s\n", nStatus, $reply[CYBS_SK_ERROR_INFO], getArrayContent( $request ), $replyType, $replyText ); // send $messageToSend to the appropriate personnel at your company // using any suitable method, e.g. e-mail, multicast log, etc. // // This sample code simply sends it to standard output. printf( "\nThis is a critical error. Send the following information to the appropriate personnel at your company: \n%s\n", $messageToSend ); } //----------------------------------------------------------------------------- function getFaultContent( $reply ) //----------------------------------------------------------------------------- { $requestID = $reply[CYBS_SK_FAULT_REQUEST_ID]; if ( $requestID == "") $requestID = "(unavailable)"; return( sprintf( "Fault code: %s\nFault string: %s\nRequestID: %s\nFault document: %s", $reply[CYBS_SK_FAULT_CODE], $reply[CYBS_SK_FAULT_STRING], $requestID, $reply[CYBS_SK_FAULT_DOCUMENT] ) ); } //----------------------------------------------------------------------------- function getArrayContent( $arr ) //----------------------------------------------------------------------------- { $content = ''; while (list( $key, $val ) = each( $arr )) { $content = $content . $key . ' => ' . $val . "\n"; } return( $content ); } //----------------------------------------------------------------------------- function getReplyContent( $reply ) { //----------------------------------------------------------------------------- $reasonCode = $reply['reasonCode']; switch ( $reasonCode ) { // Success case '100': return( sprintf( "Request ID: %s\nAuthorizedAmount: %s\nAuthorization Code: %s", $reply['requestID'], $reply['ccAuthReply_amount'], $reply['ccAuthReply_authorizationCode'] ) ); break; ####################################################################### // The request is missing one or more required fields. case '101': $i = 0; $res = ''; // getting missed fileds from response while ( !empty( $reply['missingField_'.$i] ) ) { $res .= $reply['missingField_'.$i] ."\n"; $i++; } return( "Some required fields are missed:\n". $res ); break; ####################################################################### // One or more fields in the request contains invalid data. case '102': $i = 0; $res = ''; // getting missed fileds from response while ( !empty( $reply['invalidField_'.$i] ) ) { $res .= $reply['invalidField_'.$i] ."\n"; $i++; } return( "Following fields contain invalid data:\n". $res ); break; ####################################################################### // Invalid Credit Card Number case '231': return( "The credit card number is declined! Please try different credit card." ); break; ####################################################################### // Expired credit card case '202': return( "This credit card has expired! Please try different credit card." ); break; ####################################################################### // Insufficient funds case '204': return( sprintf( "Insufficient funds in account. Please use a different card or select another form of payment." ) ); break; ####################################################################### // Add other reason codes here that you need to handle // specifically // For all other reason codes, return an empty string, // in which case, you should display a generic message // appropriate to the decision value you received. default: return ( $reasonCode ); break; } } ?> InsideMetals® - All About Gold Stocks | Why Subscribe
  Home About Why Subscribe Subscribe IM® News What's new FAQ Contact    

Why Subscribe to InsideMetals®?

InsideMetals® (insidemetals.com) offers Gold Mining Business Summaries, Financials and compiled Gold Industry Production and Reserve Reports for Gold, Silver, Platinum, and Palladium producing companies listed on the NYSE, AMEX, and the NASDAQ. Companies must meet specific criteria for inclusion; an included company must be in production with at least 40% of their sales from precious metals: gold, silver, platinum, and/or palladium.

The data for individual companies and for all of the companies on each exchange are summarized so comparisons can be made as to the financial performance, audited year-end reserves, and annual production. Also included are Industry production and reserve tables that summarize the production and economics for the listed companies.

Each Producing Gold Company includes a business summary that provides a brief description, contact information, recent press releases and comments on the company's hedging policy. Also identified are the geographic region(s) contributing to each company's production, year-end reserves, mine development and exploration activities.

Having access to this hard to find information via the internet will save you 10's to 100's of hours of research. Instead of spending many valuable hours trying to find this information, the easy access and time savings InsideMetals® provides will empower you to better understand the metals markets and use the information to make better investment decisions.

Subscribe to InsideMetals® today and spend your time making money, not looking for information! (click below for sample reports, tools and features)

 
 
 
 
 

 

 

Copyright Insidemetals 2005 Privacy Policy Disclaimer  
subscribe now