vazo
V2EX  ›  PHP

[求教]b. PHP 页面 include 引入 a.html,如果只改 b. PHP ,怎么才能修改/隐藏 b. PHP 的网页标签<title>xx</title>?

  •  
  •   vazo · Nov 2, 2022 · 1743 views
    This topic created in 1294 days ago, the information mentioned may be changed or developed.
    include './a.html';
    
    2 replies    2022-11-02 14:48:04 +08:00
    ywisax
        1
    ywisax  
       Nov 2, 2022   ❤️ 1
    ```php
    <?php

    include './a.html';

    $html = ob_get_clean();
    $html = str_replace('xxxx', 'xxx', $html);
    echo $html;

    ```
    vazo
        2
    vazo  
    OP
       Nov 2, 2022
    @ywisax 👍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3502 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 10:32 · PVG 18:32 · LAX 03:32 · JFK 06:32
    ♥ Do have faith in what you're doing.