food_server/flyCube.php

47 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2024-05-30 19:16:59 +08:00
<?php
/*
* @Author: 4021673@qq.com
* @Date: 2022-05-27 23:52:59
* @LastEditTime: 2024-06-12 16:32:23
2024-05-30 19:16:59 +08:00
* @Description: Do not edit
*/
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// | vesion3.2.3
// +----------------------------------------------------------------------
// 应用入口文件
//设定utf8编码格式
header("Content-Type:text/html; charset=utf-8");
//更新时区
date_default_timezone_set(
'PRC'
);
//设置时区
date_default_timezone_set('Asia/Shanghai');
// 检测PHP环境
if (version_compare(PHP_VERSION, '5.3.0', '<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG', True);
// 定义应用名字+目录
define('APP_NAME', 'FlyCube');
define('APP_PATH', './FlyCube/');
// 引入Composer生成的自动加载器文件
require __DIR__ . '/vendor/autoload.php';
// 引入公共函数文件
require_once APP_PATH . 'Common/Common/functions.php';
2024-05-30 19:16:59 +08:00
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';