#1 余干便民网
这个通信失败要怎么弄啊!
我的配置文件如下:
define("SP_PATH",dirname(__FILE__)."/App/SpeedPHP");
define("APP_PATH",dirname(__FILE__)."/App");
$conf1=require(APP_PATH."/Config/config.php");
$conf2=array(
'launch' => array( 'router_prefilter' => array( array('spAcl','maxcheck'), ), ),
'ext' => array(
// 康盛UCenter的设置
'spUcenter' => array(
'UC_CLIENT_DIR' => "", // uc_client文件夹的目录,无需设置
'UC_CONNECT' => "mysql", // 连接 UCenter 的方式: mysql/NULL, 默认为空时为 fscoketopen()
// mysql 是直接连接的数据库, 为了效率, 建议采用 mysql
//数据库相关 (mysql 连接时, 并且没有设置 UC_DBLINK 时, 需要配置以下变量)
'UC_DBHOST' => 'localhost', // UCenter 数据库主机
'UC_DBUSER' => 'root', // UCenter 数据库用户名
'UC_DBPW' => '', // UCenter 数据库密码
'UC_DBNAME' => 'speedphp', // UCenter 数据库名称
'UC_DBCHARSET' => 'utf8', // UCenter 数据库字符集
'UC_DBTABLEPRE' => 'speedphp.uc_', // UCenter 数据库表前缀,务必注意:最好在表前缀前加上库名
//通信相关
'UC_KEY' => '411d2F9h9i6k638f0Sc31w4f8o1X7fbW9hfIft6t07aucH4aav6W3L1zax044qbS', // 与 UCenter 的通信密钥, 要与 UCenter 保持一致
'UC_API' => 'http://localhost/speedphp/Ucenter', // UCenter 的 URL 地址, 在调用头像时依赖此常量
'UC_CHARSET' => 'utf8', // UCenter 的字符集
'UC_IP' => '', // UCenter 的 IP, 当 UC_CONNECT 为非 mysql 方式时, 并且当前应用服务器解析
'UC_APPID' => 1 // 当前应用的 ID
),
),
);
$spConfig=array_merge($conf1,$conf2);
require(SP_PATH."/SpeedPHP.php");
spRun();
?>
请教要怎么弄与UCENTER通信才能成功呢?本人菜鸟,请告知,谢谢!
2011-10-13 15:18:32