The following set of documents and sample code, PHP programs are an example.
| control/ | Application control part of the directory |
|---|---|
| data/ | cache data directory, this directory and its subdirectories need to have writable permissions |
| images/ | picture directory |
| install/ | installation directory must be removed after installation |
| js/ | javascript directory |
| lib/ | application library directory |
| module/ | application module part of the directory |
| view/ | template directory |
| index.php | server interface function library interface file |
| admin.php | User Management Center, file |
| avatar.php | Avatar Display, file |
| control/ | Application control part of the directory |
|---|---|
| data/ | Cache data directory, this directory and its subdirectories need to have writable permissions |
| lib/ | Application library directory |
| module/ | Part of the application module directory |
| client.php | Interface library |
| UC_CONNECT |
Way to connect UCenter mysql: MySQL method empty: Remote method |
|---|---|
| UC_DBHOST | UCenter Database Host |
| UC_DBUSER | UCenter database username |
| UC_DBPW | UCenter database password |
| UC_DBNAME | UCenter database name |
| UC_DBCHARSET | UCenter database charset |
| UC_DBTABLEPRE | UCenter database table prefix |
| UC_DBCONNECT | UCenter persistent database connection 0 = off, 1 = open |
| UC_KEY | and UCenter communication key, consistent with UCenter |
| UC_API | UCenter server URL address |
| UC_IP | UCenter IP. Set this value when UC_CONNECT is non-mysql manner, and the current application server have a problem in resolving the domain name |
| UC_CHARSET | UCenter character set |
| UC_APPID | Current application ID |
include './uc_client/client.php'; $newpm = uc_pm_checknew($Example_uid);