Php文件路径添加一个额外的文件夹,需要帮助来修复此文件路径错误

I have a Folder Called PHT and inside this folder is: image folder, includes folder, home folder, sources folder, and tours folder.

In my tours folder, There's a file called tours.html.php and there's a php code below:

The header.inc.html.php code is below:

<?php
define('BASE_URL', '/cas225/pht/');
?>

My problem is, when I try to go to the tours.html.php the file path created is: http://localhost/cas225/pht/tours/images/portlandhistoricaltoursheader.png

The correct file path is: http://localhost/cas225/pht/images/portlandhistoricaltoursheader.png

As you can see it adds in the tours folder somehow and I don't know how to undo this.

Use dirname( __FILE__ ) instead of baseURL.

 <?php include(dirname( __FILE__ ) . '/pht/images/portlandhistoricaltoursheader.png'); ?>