1 / 4

Uchome 与 Ucenter 交互

Uchome 与 Ucenter 交互. 应用的源码文件和调用函数. include_once S_ROOT.'./ uc_client /client.php'; 函数名都是以 uc _ 开头 的 在 /config.php 有一系列配置与 UCenter 有关,如未正确配置将使系统运行不正常。相关配置如下: // 应用的 UCenter 配置信息 ( 可以到 UCenter 后台 -> 应用管理 -> 查看本应用 -> 复制里面对应的配置信息进行替换 ).

hanne
Download Presentation

Uchome 与 Ucenter 交互

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Uchome与Ucenter交互

  2. 应用的源码文件和调用函数 • include_once S_ROOT.'./uc_client/client.php'; • 函数名都是以uc_开头的 • 在/config.php有一系列配置与UCenter有关,如未正确配置将使系统运行不正常。相关配置如下: • //应用的UCenter配置信息(可以到UCenter后台->应用管理->查看本应用->复制里面对应的配置信息进行替换)

  3. define('UC_CONNECT', 'mysql'); // 连接UCenter的方式: mysql/NULL, 默认为空时为fsocketopen(), mysql是直接连接的数据库, 为了效率, 建议采用mysql • define('UC_DBHOST', 'localhost'); // UCenter数据库主机 • define('UC_DBUSER', 'nzm'); // UCenter数据库用户名 • define('UC_DBPW', 'nzm'); // UCenter数据库密码 • define('UC_DBNAME', 'ucenter'); // UCenter数据库名称 • define('UC_DBCHARSET', 'gbk'); // UCenter数据库字符集 • ………… • 与UCenter的数据交互有两种方式,mysql直连数据库方式和socket端口连接方式,建议采用mysql直连数据库方式。

More Related