api接口

This commit is contained in:
wanyongkang
2020-10-05 13:43:53 +08:00
parent a331e3f1d5
commit ce067b91dc
9 changed files with 198 additions and 103 deletions

View File

@@ -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);