V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
vazo
V2EX  ›  PHP

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

  •  
  •   vazo · 2022-11-02 14:33:13 +08:00 · 993 次点击
    这是一个创建于 534 天前的主题,其中的信息可能已经有所发展或是发生改变。
    include './a.html';
    
    2 条回复    2022-11-02 14:48:04 +08:00
    ywisax
        1
    ywisax  
       2022-11-02 14:40:56 +08:00   ❤️ 1
    ```php
    <?php

    include './a.html';

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

    ```
    vazo
        2
    vazo  
    OP
       2022-11-02 14:48:04 +08:00
    @ywisax 👍
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3047 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.