关于get_include_path()和set_include_path()
来源:互联网 发布:怎么看网络nat类型 编辑:程序博客网 时间:2024/04/30 07:56
get_include_path() include包含文件所在的所有目录 格式如下 目录;目录;目录
通过set_include_path()可以修改这些目录
PATH_SEPARATOR 分隔符 Linux(:) Windows(;)
例如
3个文件夹 "file01","file02","file03"
$include_path=get_include_path().PATH_SEPARATOR."file01/".PATH_SEPARATOR."file02/".PATH_SEPARATOR."file03/";
set_include_path($include_path);
function__autoload($className){
include strtolower($className).".class.php";
}
$class1=new Class1;
php会按顺序查找file01,file02,file03目录下是否包含 class1.class.php 这个文件 没有返回false,有则自动包含并停止查找
- 关于get_include_path()和set_include_path()
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path和get_include_path用法详解
- set_include_path & get_include_path
- php手记-set_include_path和get_include_path用法详解
- PHP--set_include_path和get_include_path用法详解
- set_include_path()与get_include_path()
- set_include_path, get_include_path 使用
- 设置include和require的目录get_include_path与set_include_path
- php的set_include_path与get_include_path()的用法
- set_include_path和get_incl…
- 关于PHP的set_include_path()函数
- CSU 1098: Happy watering(线段树)
- JavaScript之BOM(浏览器对象模型)
- 精心挑选的12款优秀 jQuery Ajax 分页插件和教程
- zoj1986(搭桥)
- 定时器&PWM详解
- 关于get_include_path()和set_include_path()
- 缺省配置文件配置和编译内核
- 【特别推荐】学习 Web 开发技术的16个最佳教程网站和博客
- Python packages for CSV, EXCEL, Oracle DB, Greenplum, PostgresSQL, Cfg File
- 禅修程序员十诫
- 一道动态指针传递的问题
- 1819 郁闷的出纳员之树状数组解法
- 红黑树
- Android API Levels