您好,欢迎访问一九零五行业门户网

php调用服务器的路径

定义了 defined('base_path') || define('base_path', __dir__);echo出是这个 /alidata/www/myali/includes这个为什么加载不进来?require base_path.'/header.php';

回复内容: 定义了 defined('base_path') || define('base_path', __dir__);echo出是这个 /alidata/www/myali/includes这个为什么加载不进来?require base_path.'/header.php';

没看懂你的问题。你是要把header.php用include引入吗?那你应该这么写:
defined('base_path') || define('base_path', __dir__);require_once base_path.'/includes/header.php'
其它类似信息

推荐信息