Home
Sign Up
Sign In
V2EX
›
PHP
[求教]b. PHP 页面 include 引入 a.html,如果只改 b. PHP ,怎么才能修改/隐藏 b. PHP 的网页标签<title>xx</title>?
vazo
·
Nov 2, 2022
· 2205 views
This topic created in 1483 days ago, the information mentioned may be changed or developed.
include './a.html';
PHP
include
title
求教
2 replies
•
2022-11-02 14:48:04 +08:00
ywisax
Nov 2, 2022
1
1
```php
<?php
include './a.html';
$html = ob_get_clean();
$html = str_replace('xxxx', 'xxx', $html);
echo $html;
```
vazo
OP
Nov 2, 2022
2
@
ywisax
👍
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
3184 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 04:14
·
PVG 12:14
·
LAX 20:14
·
JFK 23:14
♥ Do have faith in what you're doing.
❯