【发布时间】:2019-05-22 04:58:13
【问题描述】:
我有一个名为 PHT 的文件夹,在这个文件夹里面是:image 文件夹,包括文件夹、home 文件夹、sources 文件夹和 tours 文件夹。
在我的 tours 文件夹中,有一个名为 tours.html.php 的文件,下面有一个 php 代码:
header.inc.html.php 代码如下:
<?php
define('BASE_URL', '/cas225/pht/');
?>
我的问题是,当我尝试访问 tours.html.php 创建的文件路径是: http://localhost/cas225/pht/tours/images/portlandhistoricaltoursheader.png
正确的文件路径是: http://localhost/cas225/pht/images/portlandhistoricaltoursheader.png
如您所见,它以某种方式添加到了 tours 文件夹中,我不知道如何撤消此操作。
【问题讨论】: