logo
  • 教程列表
  • SO官方文档
  • PHP 内置服务器
    • 运行内置服务器
    • 内置在具有特定目录和路由器脚本的服务器
  1. StackOverflow 文档
  2. PHP 教程
  3. PHP 内置服务器

PHP 内置服务器

Created: November-22, 2018

路由器脚本的一个例子是:

<?php
// router.php
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) {
    return false;    // serve the requested resource as-is.
}  //the rest of you code goes here.
  • 运行内置服务器

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明