Files
webman_duanju/public/index.php
2025-08-15 09:35:06 +08:00

24 lines
716 B
PHP

<?php
/**
* index.php - Web 面板启动 Workerman/Webman
*/
use support\App;
header('Access-Control-Allow-Origin: *'); // 允许所有域访问
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept, Origin, Authorization');
header('Access-Control-Allow-Credentials: true'); // 允许发送Cookie等认证信息
chdir(__DIR__);
require_once __DIR__ . '/../vendor/autoload.php';
ini_set('display_errors', 'on');
error_reporting(E_ALL);
// 进程文件
$runtimeProcessPath = __DIR__ . '/../runtime/windows';
$processFiles = glob($runtimeProcessPath . '/start_*.php');
App::loadAllConfig(['route']);
App::run();
?>