加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.php 642 Bytes
一键复制 编辑 原始数据 按行查看 历史
phecho 提交于 2016-08-31 16:01 . Initial commit
<?php
/*
* This file is part of Fixhub.
*
* Copyright (C) 2016 Fixhub.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化