Files
juipphp/index.php

38 lines
749 B
PHP
Raw Normal View History

2020-10-03 17:23:32 +08:00
<?php
2020-10-14 20:20:49 +08:00
/*
* @Descripttion:
* @version:
* @Author: kangkang
* @Date: 2020-09-30 17:32:46
2022-05-13 17:23:31 +08:00
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2022-05-12 17:26:54
2020-10-14 20:20:49 +08:00
*/
2020-10-05 13:43:53 +08:00
2020-10-11 19:23:42 +08:00
header('Content-Type: text/html; charset=utf-8');
2020-10-05 13:43:53 +08:00
2020-10-11 19:23:42 +08:00
ini_set('date.timezone','Asia/Shanghai');
2020-10-05 13:43:53 +08:00
2020-10-03 17:23:32 +08:00
//应用目录为当前目录
define('APP_PATH',__DIR__.'/');
//开启调试模式
define('APP_DEBUG',true);
//加载框架文件
2020-10-14 20:20:49 +08:00
require_once APP_PATH.'fastphp/Fastphp.php';
2020-10-03 17:23:32 +08:00
2022-05-13 17:23:31 +08:00
$path = __DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php';
if (file_exists($path)) {
require_once $path;
}
2020-10-03 17:23:32 +08:00
//加载配置文件
2020-10-14 20:20:49 +08:00
$config = require_once APP_PATH.'config/config.php';
2020-10-03 17:23:32 +08:00
//实例化框架类
(new fastphp\Fastphp($config))->run();