34 lines
708 B
PHP
34 lines
708 B
PHP
<?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);
|