Home >Backend Development >PHP Tutorial >php calls the path to the server
<code>定义了 defined('BASE_PATH') || define('BASE_PATH', __DIR__); echo出是这个 /alidata/www/myali/includes 这个为什么加载不进来?require BASE_PATH.'/header.php';</code>
<code>定义了 defined('BASE_PATH') || define('BASE_PATH', __DIR__); echo出是这个 /alidata/www/myali/includes 这个为什么加载不进来?require BASE_PATH.'/header.php';</code>
I didn’t understand your question. Do you want to include header.php
with include? Then you should write like this:
<code>defined('BASE_PATH') || define('BASE_PATH', __DIR__); require_once BASE_PATH.'/includes/header.php'</code>