set_include_path get_include_path
2015-09-01 20:26
429 查看
set_include_path("123/");
get_include_path — 获取当前的 include_path 配置选项
string get_include_path ( void )
function initialize()
{
set_include_path(get_include_path().PATH_SEPARATOR . "core/");
set_include_path(get_include_path().PATH_SEPARATOR . "app/");
set_include_path(get_include_path().PATH_SEPARATOR . "admin/");
set_include_path(get_include_path().PATH_SEPARATOR . "lib/");
set_include_path(get_include_path().PATH_SEPARATOR . "include/");
set_include_path(get_include_path().PATH_SEPARATOR."data/");
set_include_path(get_include_path().PATH_SEPARATOR."cache/");
...
}
PATH_SEPARATOR是一个常量,在Linux系统中是一个" : "号,Windows上是一个";"号。所以编写程序时最好用常量 PATH_SEPARATOR 代替,否则如果系统从linux移植到win系统或反过来移植会出错!
get_include_path — 获取当前的 include_path 配置选项
string get_include_path ( void )
function initialize()
{
set_include_path(get_include_path().PATH_SEPARATOR . "core/");
set_include_path(get_include_path().PATH_SEPARATOR . "app/");
set_include_path(get_include_path().PATH_SEPARATOR . "admin/");
set_include_path(get_include_path().PATH_SEPARATOR . "lib/");
set_include_path(get_include_path().PATH_SEPARATOR . "include/");
set_include_path(get_include_path().PATH_SEPARATOR."data/");
set_include_path(get_include_path().PATH_SEPARATOR."cache/");
...
}
PATH_SEPARATOR是一个常量,在Linux系统中是一个" : "号,Windows上是一个";"号。所以编写程序时最好用常量 PATH_SEPARATOR 代替,否则如果系统从linux移植到win系统或反过来移植会出错!
相关文章推荐
- 打印螺旋矩阵
- 给奇数的li标签添加蓝色,给偶数的li标签添加红色
- 轻松python专题--文件
- android layout_weight 管理
- [FFmpeg] Windows下使用ffmpeg为视频添加字幕
- 为普通用户赋予sudo权限(Linux)
- 012-02Spark On YARN Scala 开发WordCount计数
- R语言包_reshape2
- hdu4927Series 1 java大数
- mysql只导出表结构或数据
- [Leetcode] Sliding Window Maximum
- JavaWeb图片上传随谈(一)
- linux下文件夹的创建、复制、剪切、重命名、清空和删除命令
- 012-01Spark On YARN 环境搭建
- Linux命令学习篇0——原产地
- 表单提交中get和post方式的区别
- 【JavaSE】day12_异常(Exception)
- hive和mysql关联相对应表详情
- 轻松python之文件专题-读取文件专题
- Magento collection filtering 嵌套where条件的简单写法