You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
748 B

  1. <?php
  2. // 开发模式
  3. const APP_ENV = 'production';
  4. //数据库信息
  5. const KX_DB_HOST = '127.0.0.1';
  6. const KX_DB_USER = 'root';
  7. const KX_DB_PWD = 'root';
  8. const KX_DB_PORT = '3306';
  9. const KX_DB_NAME = 'novel';
  10. //内容缓存
  11. const KX_CACHE_COMMON_DRIVER = 'memcached';
  12. const KX_CACHE_COMMON_PREFIX = 'kx_';
  13. const KX_CACHE_COMMON_HOST = '127.0.0.1';
  14. const KX_CACHE_COMMON_PORT = '11211';
  15. const KX_CACHE_COMMON_PASSWORD = '';
  16. //章节缓存
  17. const KX_CACHE_CHAPTER_DRIVER = 'memcached';
  18. const KX_CACHE_CHAPTER_PREFIX = 'kx_';
  19. const KX_CACHE_CHAPTER_HOST = '127.0.0.1';
  20. const KX_CACHE_CHAPTER_PORT = '11211';
  21. const KX_CACHE_CHAPTER_PASSWORD = '';
  22. const API_BASE_URL = 'http://api.ptcms.com';
  23. const PHPPATH = '/usr/bin/php';