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

  • 關於本站
  • 免責聲明