PHP合并静态文件详解
发布时间:2020-12-12 20:29:15 所属栏目:PHP教程 来源:网络整理
导读:配置PHP.ini 更改配置项(必须)auto_prepend_file = "C:xampphtdocsauto_prepend_file.php" 更改配置项(可选)allow_url_include = On auto_prepend_file.php文件内容 代码如下: $value) { require_once($value); } // 改回当前脚本的执行路径 chdir($o
配置PHP.ini 更改配置项(必须)auto_prepend_file = "C:xampphtdocsauto_prepend_file.php" 更改配置项(可选)allow_url_include = On auto_prepend_file.php文件内容 代码如下: $value) {
require_once($value);
}
// 改回当前脚本的执行路径
chdir($old_dir);
}
?>
使用方法 代码如下: 在HTML页面中使用 相关内容
|