初始提交

This commit is contained in:
wanyongkang
2020-10-03 17:23:32 +08:00
commit a331e3f1d5
11 changed files with 676 additions and 0 deletions

34
index.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
//error_reporting( E_ALL&~E_NOTICE );
//ini_set( 'display_errors', 'on' );
header("Content-type:text/html;charset=utf-8");
//内存限制
ini_set (memory_limit, 128M) ;
//应用目录为当前目录
define('APP_PATH',__DIR__.'/');
//开启调试模式
define('APP_DEBUG',true);
//加载框架文件
require APP_PATH.'fastphp/Fastphp.php';
//加载配置文件
$config = require APP_PATH.'config/config.php';
//实例化框架类
(new fastphp\Fastphp($config))->run();
//require './Autoload.php';
//
//
//spl_autoload_register('Autoload::loadTest');
//
//$inn = new \app\Demo();
//$inn->abs(-123);
//echo '<br>';
//
//$urls = explode('/',$_SERVER['REQUEST_URI']);
//
//var_dump($urls);