index.php 1023 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // 应用入口文件
  12. // 检测PHP环境
  13. if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
  14. // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
  15. define('APP_DEBUG',True);
  16. // 定义应用目录
  17. define('APP_PATH','./server/Application/');
  18. // 引入ThinkPHP入口文件
  19. require './server/ThinkPHP/ThinkPHP.php';
  20. // 亲^_^ 后面不需要任何代码了 就是如此简单