这篇文章主要为大家详细介绍了php set_include_path函数用法示例,具有一定的参考价值,可以用来参考一下。
对php的set_include_path函数应用感兴趣的小伙伴,下面一起跟随512笔记的小编两巴掌来看看吧!
/**
* php的set_include_path函数应用
*
* @param
* @arrange 512-笔记网: www.512Pic.com
**/
<?php
set_include_path("include");
include("config.php");
/*** 来自512笔记(www.512pic.com) ***/
我是include下的config.php 现在我们运行index.php 怎么样,看到结果没 我们include时只用写config.php就可以把/inlcude/config.php 文件包含进来 设定多个include目录时用 " ;" 号分开 如: set_include_path("include;include2;include3;lib;c:\php\lib");本文来自:http://www.512pic.com/173/1195-0.html
注:关于php set_include_path函数用法示例的内容就先介绍到这里,更多相关文章的可以留意512笔记的其他信息。
关键词:set_include_path
512笔记收集整理一些常用的php代码,JS代码,数据库mysql等技术文章。