ThinkPHP3.0ÕûºÏUCenter1.6 Ö®(¶þ)
¡¡¡¡ÒòΪÕ⼸ÌìÓиöÏîÄ¿Òª½»¸¶£¬ËùÒÔÒ»Ö±ºÜ棬ûʱ¼ä°Ñthinkphp3.0ÕûºÏucenter1.6µÄºóÐøдÍ꣬½ñÌìÖÕÓÚÓеãʱ¼ä°ÑtpÕûºÏucÀ´Íê³É£¬Èôó¼Ò¾ÃµÈ£¬ÊµÔÚ²»ºÃÒâ˼!
¡¡¡¡Ö®Ç°·¢±íÁËһƪthinkphp3.0ÕûºÏucenter1.6 µÃµ½´ó¼ÒµÄÈÏͬ£¬ºóÀ´ÓÐЩÍøÓÑ·´Ó³»¹ÊÇÎÞ·¨ÕûºÏ£¬ºóÀ´×ܽáÁËһϣ¬·¢ÏÖÊÇÎÒÉÏ´ÎûÓÐ˵̫Çå³þ£¬×îÖÕÔÒòÊÇûÓаÑuc.phpÀïµÄ·¾¶È«²¿Ð޸ĹýÀ´£¬´ó¼Ò²éÕÒuc.phpÀïÃæµÄconfig.inc.php£¬²¢Ð޸ijÉÎÒÃÇ×Ô¼ºÅäÖÃÎļþµÄÃû×Ö config_ucenter.php £¬²¢ÐÞ¸ÄÏàÓ¦µÄ·¾¶!ÕâÑù¾Í¿ÉÒÔͨÐųɹ¦ÁË!
¡¡¡¡Èç¹û²»³É¹¦µÄͯЬ¿ÉÒÔ¸øÎÒÁôÑÔ£¬»òÕßÖ±½Ó×ÉѯÎÒ£¬ÔÚÎÒ²»Ã¦µÄʱºò»á»Ø¸´´ó¼ÒµÄ!
¡¡¡¡ºÃÁË £¬ÑÔ¹éÕý´«£¬ÏÖÔÚ¿ªÊ¼ÕýʽµÄÕûºÏ!ÎÒµÄ˼·Êǽ«ucenter ÌṩµÄapi·½·¨·â×°Ï£¬ÈÃÎÒÃǵijÌÐò¿´ÆðÀ´¸ü¼Ó¸É¾»Õû½à!Ê×ÏÈ£¬ÎÒÃÇÏÈÔÚlibĿ¼ÏÂн¨Ò»¸öÎļþ¼Ð£¬²¢ÃüÃûΪ£ºService¡£Õâ¸öÎļþ¼ÐµÄ¹¦ÄÜÒ»»áÔںʹó¼Ò½²½â¡£È»ºóÔÙService ÀïÃ潨Á¢ÎÒÃÇ×Ô¼ºµÄÀ࣬ÒÔ·½±ãºÍUCµÄͨÐÅ£¬Ð½¨phpÎļþ£¬ÎļþÃûΪ£ºUcService.class.php,
¡¡¡¡ÀàÃûUcService£¬ÎÒÃÇÔÚÀàÀïʵÏÖ¶ÔUCenterµÄ²Ù×÷¡£Òª²Ù×÷UCenterµÄAPI £¬Ê×ÏÈÎÒÃÇÒªµ¼ÈëÏàÓ¦µÄÎļþ£¬ÏàÐÅ´ó¼ÒÒѾÏëµ½ÁË£¬µÚÒ»¸öÊÇUCenterµÄÅäÖÃÎļþ£ºconfig_ucenter.php£¬µÚ¶þ¸öÊÇÎҵijÌÐòºÍUCenterͨÐÅµÄ client.php Îļþ ¡£µ¼ÈëÕâÁ½¸öÎļþ£¬ÎÒÃÇÔÚindex.phpÈë¿ÚÎļþÔö¼ÓÒ»¸ö³£Á¿£¬À´¶¨ÒåÎÒÃǵÄÎïÀí¸úĿ¼¡£
//ÏîÄ¿ÎïÀí¸ú·¾¶
define('DOC_ROOT_PATH', rtrim(dirname(__FILE__), '/\\') . DIRECTORY_SEPARATOR);
È»ºóÎÒÃÇÔÚUcService.class.phpÀﶨÒåÒ»¸ö¹¹Ô캯Êý£¬À´µ¼ÈëÎÒÃǵÄÕâÁ½¸öÎļþ£¬
public function __construct()
{
include_once(DOC_ROOT_PATH . 'Conf/config_ucenter.php');
include_once(DOC_ROOT_PATH . 'uc_client/client.php');
}
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ