您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

get_include_path()是什么意思?该如何处理

2024/3/26 15:41:35发布14次查看
get_include_path()是什么意思?
这段代码 set_include_path(include_path . path_separator . get_include_path());
我百度了下说是可以对include和require的路径范围进行限定
但是我echo get_include_path(); 输出的是f:\appserv\www\iwb/application/;.;c:\php5\pear
后面的;.;c:\php5\pear算是什么啊?
------解决方案--------------------
paer是php的库,这个库提供了很多现成的封装对象,类似javascript的jquery。当你要使用这个库时,就可以把库文件放在c:\php5\pear,而不用放在网站目录里。
------解决方案--------------------
get_include_path 函数返回当前 php 的搜索路径(通常就是 php.ini 中的 include_path)
当没有另外设置 include_path 时, php 默认 include_path 为 .;c:\php5\pear(window系统中)
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product