Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

PHP to prevent the wrong show

To prevent the error message appears in the browser, you can add the corresponding statement in front of @ symbol, such as the following statement to connect the database, the database failed to connect when the browser not to display an error message:
$ db = @ mysql_connect (...);

November 17th, 2008 Posted by eric | Coding | no comments

Add to your blog to donate multi-currency functionality (including RMB)

To make their own blog sustainable development, it is necessary to be able to feed themselves.

Some time ago, to do a donor wordpress plugin WP-DONATORS, can support PAYPAL donation and multi-currency exchange rate for automatic conversion. And other donations button, it also has a background with PAYPAL API real-time communication, the return of payments data, and then the donor specified connection with the advertisements on the "donor cloud" showing up.

Followed by more background and support for the currency. First, the renminbi, paypal.com does not support the yuan, of course, the thought of "pay-Bao", but "pay-bao" to communicate their staff not to provide personal donation function.

Discovered the "PayPal" (that is paypal China) recently in October, he updated the cost of RMB policy, free of charge. Should pay attention to the "PayPal" paypal is specific to China's renminbi business, with Universal paypal.com account (foreign currency), so you must specifically for the "PayPal" registered account. Registration, "PayPal"

PayPal Sign up now and begin to accept credit card payments.

They just use the same paypal API so easy to add features yuan. When used in the background as long as the words "PayPal" account opened on the RMB. When the donor to use RMB for payment, the amount went to "PayPal" account, go to other currencies paypal account. You can use the credit card paypal.com to open foreign currency accounts to support multi-currency
Sign up for PayPal and start accepting credit card payments instantly.

Click to continue reading

November 12th, 2008 Posted by eric | WordPress, Web Technology | one comment

JavaScript is called SOAP

Would like to have been directly JavaScrip call Xurrency.com of SOAP, the realization of the exchange rate of AJAX, to find a JavaScript SOAP Client done a test. Local on IE, Chrome successful return, firefox with the host on the error, "access to restricted URI DENIED" I do not know why his.

Decided to give up. Using php soapclient + jquery ajax to achieve.

JavaScript SOAP Client test code is as follows:

? Download test.html
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
  Of 10 
 11 
 12 
 13 
 14 
 15 
 16 
 17 
 18 
 19 
 20 
 21 
 22 
 23 
 24 
 25 
 26 
 27 
 28 
 29 
  "-//W3C//DTD XHTML 1.0 Strict//EN" <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Strict / / EN"  
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
  "http://www.w3.org/1999/xhtml"  lang = "en"  xml : lang = "en" > <Html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml: lang = "en"> 
  <Head> 
  XHTML - document </ title > <Title> XHTML - document </ title> 
  "text/javascript"  src = "soapclient.js" ></ script > <Script type = "text / javascript" src = "soapclient.js"> </ script> 
  "text/javascript" > <Script type = "text / javascript"> 

	  function currency () ( 
		  "http://xurrency.com/servidor_soap.php" ; var url = "http://xurrency.com/servidor_soap.php"; 
		  new  SOAPClientParameters ( ) ; var pl = new SOAPClientParameters (); 
		  "amount" , 5 ) ; pl. add ( "amount", 5); 
		  "base" , "usd" ) ; pl. add ( "base", "usd"); 
		  "target" , "eur" ) ; pl. add ( "target", "eur"); 
		  url , "getValue" ,  pl , true ,  Currency_callBack ) ; SOAPClient. Invoke (url, "getValue", pl, true, Currency_callBack); 
	  ) 

	  r ) { function Currency_callBack (r) ( 
		   r ) ; alert (r); 
		  ) 

  </ Script> 
  </ Head> 
  <Body> 
	  "" > <Form action = ""> 
  button value = "Invoke"  onclick = "currency();" /> <Input type = button value = "Invoke" onclick = "currency ();" /> 
  </ Form> 
  </ Body> 
  </ Html> 

November 10th, 2008 Posted by eric | Coding, Web technology | no comments

PayPal multi-currency support and the use of IPN

Paypal to receive the following support for the currency

Code Currency
AUD Australian Dollar
CAD Canadian Dollar
CHF Swiss Franc
CZK Czech Koruna
DKK Danish Krone
EUR Euro
GBP Pound Sterling
HKD Hong Kong Dollar
HUF Hungarian Forint
JPY Japanese Yen
NOK Norwegian Krone
NZD New Zealand Dollar
PLN Polish Zloty
SEK Swedish Krona
SGD Singapore Dollar
USD US Dollar

The use of multi-currency IPN

payment_gross and payment_fee: For non-US dollar payment, which is the value of the vacancy, so IPN script will not be such as the amount of dollars to deal with.

Multi-currency variables: For non-US dollar payment, IPN will add the following multi-currency variables, mc_gross and mc_fee
mc_gross: transaction fees deducted before the payment is received to pay the full amount of currency.
mc_fee: payment and paid currency-related transaction costs. Payment_fee similar to the variable function of the variables (such as the amount to be paid, the non-variable).
For rental IPN, such as registration, cancellation, modification, and the failure of EOT, mc_currency is the currency rates rather than monetary payment.

Click to continue reading

November 7th, 2008 Posted by eric | Web technology, financial and investment | no comments

Zend Studio debug Tips

How to Set $ _GET and $ _POST vars in the debugger

  1. Click on the 'variables' tab of your debug window. You will notice a lot of global, server, and environment vairables. Among them, you should see the empty $ _GET and $ _POST arrays.
  2. Right-click on either array and choose 'assign value.' To input an array, type it in this format: array (value1 => foo, value2 => bar, name => 'James Cricket')

November 4th, 2008 Posted by eric | unclassified | no comments

ZendDebugger for Freebad

Requester:

disable your ZendOptimizer and eaccelerator
download ZendDebugger.os place to / usr/local/lib/php/20060613 /

ZendDebugger.so for freebsd (2.2 MiB, 5 hits)
You need to be a registered user to download this file.

Install:

edit your php.ini. For me php.ini is in / usr / local / etc /

[Zend]
zend_extension=/usr/local/lib/php/20060613/ZendDebugger.so
zend_debugger.allow_hosts=10.10.2.0/24
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10001

restart your apache

Look in the phpinfo () got the result below!

zenddebugger

Click to continue reading

November 3rd, 2008 Posted by eric | Coding, System, unclassified | no comments

2 3 4 5 6 7 8 9 10 » ... Last » Page 1 of 29 1 2 3 4 5 6 7 8 9 10 »... Last»