【发布时间】:2020-08-26 17:44:16
【问题描述】:
在我的 php 网站上,我试图在根文件夹之外包含 html 页面(html 页面会自动更改)
如果我包含一个 html 页面,我会收到链接文件的 404 错误,如果我也包含链接文件,它们将无法正确显示
路径/站点/root/index.php
...
include("path/html/index1.html");
include("path/html/index1_files/img.png");
...
路径/html/index1.html
...
<img src="index1_files/img.png">
...
【问题讨论】: