Taoapi PHP SDK ÒѾÉý¼¶µ½2.2 Ö§³ÖUTF 8 GB2312±àÂë
´Ó2.2Æð SDK ½«È«ÃæÖ§³ÖUTF-8 GB2312 µÈ¶àÖÖ¸ñʽ,Ò»Ì×SDK ¾Í¿ÉÒÔ×ÔÊÊÓ¦ÄúËùÐèÒªµÄ±àÂë,
ÄÚ´øÅäÖÃÎļþ Taoapi_Config.inc.php
×îиüÐÂ
2010-02-25 Ôö¼ÓÁ˱àÂë¸ñʽ×ÔÊÊÓ¦¹¦ÄÜ
2010-02-25 Ôö¼ÓÁËAPIµ÷ÓÃÈÕÖ¾¹¦ÄÜ,ÿÐÐÏ൱ÓÚÒ»´ÎAPIµ÷ÓÃ
2010-02-25 Ôö¼ÓÁË×Ô¶¯Çå³ý»º´æµÄ»úÖÆ
2010-02-25 Ôö¼ÓAPIµ÷Óó¬¹ýÏÞÖÆʱ×Ô¶¯Çл»µ½ÁíÒ»¸öAPPKEY,Èç¹ûÉèÁ˶à¸öµÄ»°
2010-02-25 ¼ÓÈëÿ´Îµ÷ÓÃAPIºóÊÇ·ñ×Ô¶¯Çå³ýÔÓд«Èë²ÎÊýµÄ¿ª¹Ø
2010-02-25 ¼ÓÈ뿪Æô»ò¹Ø±Õ´íÎóÈÕÖ¾µÄ¿ª¹Ø
2010-02-25 ¼ÓÈ뿪Æô»ò¹Ø±ÕAPIµ÷ÓÃÈÕÆڵĿª¹Ø
2010-02-25 ÓÅ»¯ÁËÑ»·Í¬Ò»¸öAPIʱ,Ö»ÐèÒª´«ÐèÒª¸Ä±äµÄ²ÎÊý¼´¿É
2010-02-25 ÌáÉýÁ˳ÌÐòÐÔÄÜ,À©´óÁË»º´æ³ÐÔØÁ¿
..... ¸ü¶à¾«²ÊµÈÄú·¢ÏÖ!ËÓÃËÖªµÀ ËÓÃ˾«²Ê
¸üÐÂÀúÊ·
2009-12-29 PHPSDK°æ±¾ºÅÓÉ2.0Éý¼¶µ½2.1
2009-12-29 ÔÚTaoapi_ConfigÖÐͬÑù¼ÓÈësetVersion·½·¨,Ö§³ÖÉèÖÃÈ«¾ÖÐÔµÄAPI°æ±¾ºÅ
2009-12-29 Éý¼¶API2.0Éú³Ésign·½Ê½,ÍêÃÀÖ§³Ö¹Ù·½Ìá³öµÄMD5ºÍHMAC¶þÖÖ·½Ê½
2009-12-28 ¼ÓÈë´íÎóÈÕÖ¾.µ±¹Ø±Õ´íÎóÏÔʾʱ×Ô¶¯¼Ç¼µ½´íÎóÈÕÖ¾ÖÐ
2009-12-25 ÐÞÕýPHP5.3ÖгöÏÖURLÆ´½Ó²»Ò»ÖµÄBUG
2009-12-22 ·¢²¼Taoapi_Php_Sdk_V2.0
2.2°æÐÂÔöµÄ²ÎÊýÉèÖ÷½·¨
È«¾ÖÐÔ²ÎÊýÉèÖÃ
//ÉèÖÃÊý¾Ý»·¾³: true ²âÊÔ»·¾³ false Õýʽ»·¾³
$Taoapi_Config->setTestMode(false);
//ÉèÖûñÈ¡Êý¾ÝµÄ±àÂë. Ö§³ÖUTF-8 GBK GB2312
$Taoapi_Config->setCharset("UTF-8");
//µ±appKey²»Ö»Ò»¸öʱ,API´ÎÊý³¬ÏÞºó×Ô¶¯ÆôÓÃÏÂÒ»¸öAPPKEY
$Taoapi_Config->setAppKeyAuto(true);
//ÉèÖÃAPI°æ±¾,1 ±íʾ1.0 2±íʾ2.0
$Taoapi_Config->setVersion(1);
//ÉèÖÃsign¼ÓÃÜ·½Ê½,Ö§³Ö md5 ºÍ hmac
$Taoapi_Config->setSignMode('md5');
//ÏÔʾ»ò¹Ø±Õ´íÓïÌáʾ
$Taoapi_Config->setCloseError(true);
//¿ªÆô»ò¹Ø±ÕAPIµ÷ÓÃÈÕÖ¾¹¦ÄÜ
$Taoapi_Config->setApiLog(false);
//¿ªÆô»ò¹Ø±Õ´íÎóÈÕÖ¾¹¦ÄÜ
$Taoapi_Config->setErrorlog(false);
//ÉèÖÃAPI¶Áȡʧ°ÜʱÖØÊԵĴÎÊý
$Taoapi_Config->setRestNumberic(3);
//ÉèÖÃÊý¾Ý»º´æµÄʱ¼ä
$Taoapi_Config->setCache(24);
//ÉèÖûº´æ±£´æµÄĿ¼
$Taoapi_Config->setCachePath('./Apicache');
//·µ»ØÈ«¾ÖÅäÖòÎÊý
$Taoapi_Config->getConfig();
µ÷Ó÷½·¨ÊµÀý(È«¾Ö²ÎÊýÖ»ÐèÒªÉèÖÃÒ»´Î¼´¿É):
$Taoapi_Config = Taoapi_Config::Init();
$Taoapi
Ïà¹ØÎĵµ£º
±¾ÎÄת×Ô http://hi.baidu.com/kxw102/blog/item/f1303188d9c148bb0e2444f2.html£¬¸Ðл×÷ÕߵķÖÏí
ÔÚ
PHP
ÖУ¬»ù±¾Êý¾Ý¿ÉÒÔ·ÖΪ³£Á¿ºÍ±äÁ¿Á½ÖÖ¡£³£Á¿ÃûºÍ±äÁ¿Ãûͨ³£³ÆΪ±êʶ·û¡£(
ÐèҪעÒâµÄÊDZêʶ·û±ØÐëÒÔ×Öĸ»òÕßÏ»®Ïß¿ªÍ·£¬²¢ÇÒÖ»ÄÜ°üÀ¨×Öĸ¡¢Êý×ÖºÍÏ»®Ïß
)
ÀýÈ磺
my_function¡¢Size¡¢
_BlackµÈµÈ
1.ÏÂÃæËµÏ ......
ת×Ô:http://www.ccvita.com
;;;;;;;;;;;;;;
;; ¼ò½é ;;
;;;;;;;;;;;;;;
; ±¾ÎIJ¢·ÇÊǶÔÓ¢ÎÄ°æ php.ini µÄ¼òµ¥·Ò룬¶øÊDzο¼ÁËÖÚ¶à×ÊÁÏÒԺ󣬽áºÏ×Ô¼ºµÄÀí½â£¬Ôö¼ÓÁËÐí¶àÄÚÈÝ£¬
; °üÀ¨ÔÚÔÓÐ php.ini »ù´¡ÉÏÔö¼ÓÁËһЩʵÓÃÄ£¿éµÄÅäÖÃ˵Ã÷£¬Í¬Ê±¶ÔÎļþÄÚÈݵİ²ÅŽøÐÐÁ˵÷Õû¡£
; ÓÉÓÚ×÷Õß²»Ï²»¶ no-free µÄÍæÒâ¶ù£ ......
Ò»¡¢¸½¼ÓÂëµÄ×÷ÓÃ
¡¡¡¡±¾ÎÄËùÊöµÄ¸½¼ÓÂë½öÖ¸ÔÚWEBÉÏʹÓõĶàÓÃÓÚÉí·ÝÑéÖ¤µÄ¸½¼ÓÂë¡£
¡¡¡¡¸½¼ÓÂëµÄÖ÷Òª×÷ÓÿÉÄÜÊÇ·ÀÖ¹±©Á¦·ÃÎÊ£¬ÀýÈ籩Á¦·½Ê½µÄÃÜÂëÆƽâºÍÐÅÏ¢·¢²¼¡£
¡¡¡¡¸½¼ÓÂëÔÚÓû§Éí·ÝÑéÖ¤·½ÃæµÄÓ¦ÓÃÄܹ»´ÓÒ»¶¨³Ì¶ÈÉÏ·ÀÖ¹¶ÔÓû ......
ÎÊÌâÒ»£ºcactiÈç·¨Õý³£µÇ¼£¬Ã»Óб¨PHP³ÌÐò´íÎó
½â¾ö¹ý³Ì½â¾ö¹ý³Ì£º¿ªÆôPHP±¨´íÏÔʾ£¨ÔÚµ÷ÊÔʱ£¬Ò»Ö±¿¨ÔÚÕâ¶ù£¬ÓÉÓÚÊÇ·þÎñÆ÷ÉÏ£¬Ã»ÓпªÆô±¨´í³ÌÐò£©display_errors = On
·¢ÏÖ±¨Warning: session_start() [ ......
Éϴμ̱¾ÈË·¢²¼ÁËVC±àдPHPÀ©Õ¹Ö®Hello Worldƪºó£¬·´Ó³ºÜÇ¿ÁÒ£¬´ó¼Ò¶¼Ï£ÍûÄÜÍÑÀëPHP²ËÄñÐÐÁУ¬Õâ´ÎÎÒ¸ø´ó¼Ò´øÀ´PHPµ÷ÓÃC#±àдµÄCOM+×é¼þ¡£ COM+×é¼þÔ´´úÂë CODE:using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Reflection; using System.Data.O ......