api接口
This commit is contained in:
29
index.php
29
index.php
@@ -1,9 +1,17 @@
|
||||
<?php
|
||||
//error_reporting( E_ALL&~E_NOTICE );
|
||||
//ini_set( 'display_errors', 'on' );
|
||||
header("Content-type:text/html;charset=utf-8");
|
||||
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header("Access-Control-Allow-Methods: *");
|
||||
header('Access-Control-Allow-Headers:*');
|
||||
|
||||
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
error_reporting(E_ALL ^ E_WARNING);
|
||||
|
||||
//内存限制
|
||||
ini_set (‘memory_limit’, ‘128M’) ;
|
||||
ini_set ('memory_limit', '1024M');
|
||||
//应用目录为当前目录
|
||||
define('APP_PATH',__DIR__.'/');
|
||||
|
||||
@@ -19,16 +27,3 @@ $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);
|
||||
Reference in New Issue
Block a user